|
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 |
|