Gets an event that is fired when the command has completed gathering the required input and now needs to perform a preview.
-------- 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 MyExecutePreviewEventHandler : public adsk::core::CommandEventHandler { public: void notify(const Ptr<CommandEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyExecutePreviewEventHandler event handler."); } } _executePreview; --------- Connect the handler to the event. ---------
|
Type | Description |
CommandEvent | Returns a CommandEvent object that is used to connect and release from the event. |