API: How to call a method in a .NET addin from a macro

Version 5

    The attached example shows how to call a method in a .NET addin from a VBA macro.  To run the sample, load the addin into SolidWorks, then run the macro.  A message box will appear if it executes successfully.

     

    Note:  This will not work with C# or early bound VB.NET macros.  Referencing a COM interface that was exported from a .NET assembly is not allowed in .NET.

     

    Note:
    - Subscription Services required for full access.

    - Looking for more API Examples?

     

    Copyright © 2010 Dassault Systèmes SolidWorks Corp. All rights reserved.
    Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp.