Visual C# .NET Standalone and Add-in Applications
Standalone Applications (.exe files)
To create an instance of the SolidWorks software, your executable project
should contain lines of code similar to the following:
static void Main(string[] args)
{
SldWorks.SldWorks
swApp;
swApp
= new SldWorks.SldWorks();
swApp.ExitApp();
swApp
= null;
}
Additionally, you must have added references to the SolidWorks
type libraries.
Add-in Applications (.dll files)
You can create a Visual C# .NET DLL add-in using the SolidWorks C# Add-in
Template included in the SolidWorks
API SDK. See
SolidWorks C# Add-in Template for details.