Using SolidWorks VB.NET Add-in Wizard to Create Visual Basic .NET Add-in
This topic describes how to use the SolidWorks
VB.NET Addin Wizard to create Visual Basic .NET add-ins in Microsoft
Visual Studio .NET 2005 or 2008. This topic also identifies and describes
the files generated by the wizard. Click a link to read that section.
NOTES:
The SolidWorks
VB.NET Addin Wizard is included in the SolidWorks
API SDK.
If you have Visual Studio .NET and Visual Studio
.NET 2003 installed on your computer, select the version of Visual Studio
that you want to install the SolidWorks project templates. You can only
install the SolidWorks project templates in one version of Visual Studio.
Creating a Visual Basic .NET Add-in using the
SolidWorks VB.NET Addin Wizard
Click Start,
Programs, Microsoft Visual Studio 2005 or Microsoft
Visual Studio2005.
- or -
Click Start, Programs, Microsoft Visual
Studio 2008 or Microsoft Visual
Studio 2008.
Click the New
Project button.
Select Visual
Basic Projects in Project Types.
Select SolidWorks
VB.NET Addin in Templates
Type the name of your project in Name.
Click OK.
Type the name of the add-in in Addin
Name.
Under AddinEvents,
select the events for which you want to listen:
SolidWorks
Events. Fired by the SolidWorks application.
Part Events.
Fired by individual part documents.
Assembly
Events. Fired by individual assembly documents.
Drawing Events. Fired by individual drawing documents.
Model View
Events. Fired by individual model views in each document.
It is recommended that you leave the SolidWorks Events check box selected
because:
Model views are created in individual documents.
To listen for a model view event, you must be listening to the basic document.
Thus, the Model View Events check
box is not available until you select at least one of these check boxes:
Part Events, Assembly
Events, or Drawing Events.
Under Addin
User Interface, select Create
Property Page to include an add-in PropertyManager page. This page
is displayed in the SolidWorks application and should contain controls
to extend the add-in's user interface.
Click
Finish.
Wait for the SolidWorks VB.NET Addin
Wizard to set up
your add-in's source files and to locate your SolidWorks directory.
If the SolidWorks VB.NET Addin Wizard
finds your SolidWorks directory, it automatically adds references to the
SolidWorks type libraries and creates the RCWs (Runtime Callable Wrappers).
Back to top
Examining Visual Basic .NET Add-In Files
These files are created by the SolidWorks
VB.NET Addin Wizard:
Back to top