The SetupCreated event fires when a new setup is created.
-------- Import ----------------- Global variables --------- -------- Connect the handler to the event. --------- "cAM_var" is a variable referencing a CAM object. -------- Event handler function definition --------- |
-------- Global variables ----------------- Connect the handler to the event. --------- "cAM_var" is a variable referencing a CAM object. "MySetupCreatedHandler" is the name of the class that handles the event. -------- Event handler class definition --------- |
--------- Required include files. ------------------ Event handler class definition and global declaration. --------- class MySetupCreatedEventHandler : public adsk::cam::SetupEventHandler { public: void notify(const Ptr<SetupEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MySetupCreatedEventHandler event handler."); } } _setupCreated; --------- Connect the handler to the event. --------- |
-------- Event handler function definition ----------------- Connect the handler to the event. --------- "MySetupCreatedHandler" is the name of the class that handles the event. "cAM_var" is a variable referencing a CAM object. |