Learn how 3 ideas from SOLIDWORKS Top Ten List 2020 are implemented from scratch in less than 25 minutes by watching this video
Macro feature resides in the model and saved together with the document. Macro feature can handle various events during its lifecycle
- Regeneration. Override OnRebuild method to handle this event.
- Editing. Override OnEditDefinition method to handle this event.
- Updating state. Override OnUpdateState method to handle this event.
Macro feature is a singleton service. Do not create any class level variables in the macro feature class. If it is required to track the lifecycle of particular macro feature use Feature Handler