VB.NET AND Solidworks 2005 -- Urgent

Dec 26, 2005 1 Replies

Gururs,



I am building a commandline client which translates a solidworks drawing to an autocad drawing. Everything is working fine but when i reference the solidworks typelibs, it creates Interop.SldWorks.dll in the bin directory.



How do I register SldWorks.dll? Is there anyway I can get rid of this dll?



Your help is highly appreciated.



Thanks, Mals



If you find the Interop.SldWorks.dll in your build folder, you have successfully registered SldWorks.dll. Basically what happens is that Visual Studio creates automatically so called "inter-operation wrapper" around SldWorks.dll. Due to the ".NET Frameworkd architecture" you cannot call SldWorks.dll directly from VB.NET. Actually you work with the interop wrapper, which does the dirty job with the "unmanaged code" behind the scenes. So basically - don't worry, just add reference to SldWorks.dll (as you apparently have done) and go on as usually, the wrapper is created for you but you don't have to worry about that.

-h-

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required