The insertingFromURL event fires when the user has clicked a link in a web page that uses the Fusion protocol handler to insert a file as new component. This event is fired at the beginning of the request but before Fusion has take any action so that it's still possible to cancel the operation.
-------- 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 MyInsertingFromURLEventHandler : public adsk::core::WebRequestEventHandler { public: void notify(const Ptr<WebRequestEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyInsertingFromURLEventHandler event handler."); } } _insertingFromURL; --------- Connect the handler to the event. --------- |