Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
DSDarren Smith11/04/2025
Can anybody help?
I am writing a Vb.Net AddIn for Solidworks.
I want to be able to open a part document using a sub routine in a module called "Module1.vb"
How can I make swApp global, in my class module, so it can be used in a sub routine contained in a separate module?
Here is my code that I am using....
Module Module01
Sub OpenPartDocument()
doc = swApp.OpenDoc6(FilePath, swDocumentTypes_e.swDocPART,