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.