The dataFileCopyComplete event fires when a data file copy has completed including any PIM Data copy.
-------- Import ----------------- Global variables --------- -------- Connect the handler to the event. --------- "application_var" is a variable referencing an Application object. -------- Event handler function definition --------- |
-------- Global variables ----------------- Connect the handler to the event. --------- "application_var" is a variable referencing an Application object. "MyDataFileCopyCompleteHandler" 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 MyDataFileCopyCompleteEventHandler : public adsk::core::DataEventHandler { public: void notify(const Ptr<DataEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyDataFileCopyCompleteEventHandler event handler."); } } _dataFileCopyComplete; --------- Connect the handler to the event. --------- |
-------- Event handler function definition ----------------- Connect the handler to the event. --------- "MyDataFileCopyCompleteHandler" is the name of the class that handles the event. "application_var" is a variable referencing an Application object. |