The SetupActivating event fires before a setup is activated.
-------- Import ----------------- Global variables --------- -------- Connect the handler to the event. --------- -------- Event handler function definition --------- |
-------- Global variables ----------------- Connect the handler to the event. --------- -------- Event handler class definition --------- |
--------- Required include files. ------------------ Event handler class definition and global declaration. --------- class MySetupActivatingEventHandler : public adsk::cam::SetupEventHandler { public: void notify(const Ptr<SetupEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MySetupActivatingEventHandler event handler."); } } _setupActivating; --------- Connect the handler to the event. --------- |