SOLIDWORKS API
Help
Visual Basic .NET Standalone and Add-in Applications
Standalone Applications (.exe files)
To create an instance of the SOLIDWORKS software, your project should
contain lines of code similar to the following:
Sub Main
Dim
swApp As SldWorks.SldWorks
swApp
= New SldWorks.SldWorks()
swApp.ExitApp
swApp
= Nothing
End Sub
Additionally, you must have added references to the SOLIDWORKS type libraries.
Add-in Applications (.dll files)
You can create a Visual Basic .NET DLL add-in using the
SOLIDWORKS
VB.NET Add-in Template included in
the SOLIDWORKS API
SDK. See
SOLIDWORKS VB.NET Add-in Template for details.