This is a Vikrant Udawant add-in example which illustrates creation of a macro feature using IFeatureManager::InsertMacroFeature3 API. It shows how to create a multibody macro feature.
Key details:
- The addin creates a command group named "SwCppAddinMF" and adds a toolbar item named "Insert Macro Feature" to it. The relevant implementation code can be found in item's callback function "ToolbarCallback0"
- The addin class implements the ISwComFeature interface. This interface has three methods that must be implemented:
ISwComFeature::Edit()
ISwComFeature::Regenerate()
ISwComFeature::Security()
- After successfully building and registering the addin, open existing or a new part document in SOLIDWORKS and Click Tools > SwCppAddinMF > Insert Macro Feature.