Hide Table of Contents

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

  1. Click Start, Programs, Microsoft Visual Studio 2005 or Microsoft Visual Studio2005.

    - or -

    Click Start, Programs, Microsoft Visual Studio 2008 or Microsoft Visual Studio 2008.
     

  2. Click the New Project button.

  3. Select Visual Basic Projects in Project Types.

  4. Select SolidWorks VB.NET Addin in Templates  

  5. Type the name of your project in Name.

  6. Click OK.

  7. Type the name of the add-in in Addin Name.

  8. 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:

    • This check box must be selected to listen to any of the other events.

    • You can use this event's code as sample code if you decide to include event handling in the future.  

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.

  1. 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.  

  2. 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



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Using SolidWorks VB.NET Add-In Wizard to Create VB.NET Add-In
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2010 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.