几何尺寸与公差论坛

用户名  找回密码
 注册
查看: 815|回复: 0

【转帖】image preview from external program

[复制链接]
发表于 2009-4-13 12:09:38 | 显示全部楼层 |阅读模式
image preview from external program
i am getting ready to implement an image preview in a project i am working on. from the posts regarding this, it does not seem to be very friendly. i have created an external app in vb.net (2008 to be exact). i am thinking of using the document manager to approach this.
bottom line - does anyone have any tips or code that they will be willing to share from their experiences?
thanks in advance!
tony szuta
cswa, cswp, cswp-smtl
veeeeery tricky subject tony, i have only just implemented it myself in batchprocess and it involved some pretty slick programming from com and a bit of unmanaged code in the c#.
all i can say is its not a one line answer and due to a business point of view i cannot just give you the solution, but i will say your "simplest" way although still hard work is to use dm not sw as you will need to dynamically create an in-process thread to retrieve an image callback to your app.
got the image preview all sorted out. i found a great snippet of code and implemented it with my program. works great! dm was the way to go. the hardest part was getting the key from solidworks. the first one that they had issued did not work. as soon as i got the new key, it fired up without any issues.
tony szuta
cswa, cswp, cswp-smtl
good stuff. be aware that key should be your own key not anyone elses and it should not be ditributed or visible to the end users
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2025-1-12 02:11 , Processed in 0.037716 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表