Using the SOLIDWORKS C# and VB.NET Add-in Templates to Create Add-ins
This topic describes how to use the SOLIDWORKS
C# Add-in Template or the SOLIDWORKS
VB.NET Add-in Template to create an add-in using Microsoft Visual
Studio .NET 2005 and later.
After installing
the
SOLIDWORKS
API SDK:
Open Microsoft Visual Studio .NET.
Click File > New > Project.
In the left panel of the New Project dialog, select:
Modify the Name, Location, Solution, and
Solution name fields.
Click OK.
Open Solution Explorer.
Double-click SwAddin.* to open it.
Notice that SwAddin uses or imports SolidWorksTools. The SOLIDWORKS
API SDK installs SolidWorksTools.dll in install_dir. The
template adds this DLL to the reference list of your add-in project. The
DLL must be redistributed with your add-in application. Currently this DLL contains the SOLIDWORKS bitmap handler class, BitmapHandler,
which is based on the SOLIDWORKS CommandManager. Use either the Microsoft Visual Studio .NET Object Browser or Intellisense to see its members.