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 Microsoft Visual Studio
.NET 2003 and the SolidWorks C# Addin
Wizard included in the SolidWorks
API SDK. See SolidWorks
C# Addin Wizard for details. You can also create an add-in using Microsoft
Visual Studio .NET 2005 or 2008 and the SolidWorks
C# Project Template, which is also included in the SolidWorks API
SDK.