API: C#\VB.NET Add-ins to Create a Macro Feature

Document created by Michael Kozikowski Employee on Aug 23, 2010Last modified by Michael Kozikowski Employee on Jan 2, 2013
Version 5Show Document
  • View in full screen mode

This is an add-in example that calls IFeatureManager::InsertMacroFeature3 using VB.NET. It implements the macro feature on the ISldWorks_ActiveDocChangeNotify event. Search for the string "MIK" to see the code changes that were made to the standard VB.NET add-in template code. Note that you need to implement the ISwComFeature interface and stub methods, Edit(), Regenerate() and Security().


**The VB.NET Addin has been updated for 64 bit compatibility. Using integer values instead of longs for the IFeatureManager::InsertMacroFeature3 5th parameter insures 32\64 bit compatibility. A post-build event has been added as well to register the Addin explicitly. (See InsertMacroFeature VB NET Addin Mods for 64 bit.zip). A C# Addin has been added as well, with a post-build registration event also, and the addin is also compatibile with 32 or 64 bit.


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