API: VB.NET VSTA Macro to Create a Macro Feature

Version 3

    This is a VSTA macro example, that calls IFeatureManager::InsertMacroFeature3 using VB.NET. The macro implements the macro feature only, using the ProgID of a registered ActiveX or COM server dll which was implemented separately. That separate implementation is the object class that implements the ISwComFeature interface and has the callback stub methods, Edit(), Regenerate() and Security(). The attached file contains two projects, one is the VSTA macro and the other is the COM class implementation. Compile the COM class project and the dll will be registered in the Windows registry. The macro will use that registered ProgID and can be compiled in VSTA.

     

    Note:
    - Subscription Services required for full access.

    - Looking for more API Examples?

     

    Copyright (c) 2011 Dassault Systemes SolidWorks Corp. All rights reserved. Do not distribute or reproduce without the written consent of Dassault Systemes SolidWorks Corp.