This event is fired when the JavaScript associated with the HTML calls the adsk.fusionSendData function. This allows the HTML to communicate with the add-in by passing information to the add-in.
-------- Import ----------------- Global variables --------- -------- Connect the handler to the event. --------- "textCommandPalette_var" is a variable referencing a TextCommandPalette object. -------- Event handler function definition --------- |
-------- Global variables ----------------- Connect the handler to the event. --------- "textCommandPalette_var" is a variable referencing a TextCommandPalette object. "MyIncomingFromHTMLHandler" 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 MyIncomingFromHTMLEventHandler : public adsk::core::HTMLEventHandler { public: void notify(const Ptr<HTMLEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyIncomingFromHTMLEventHandler event handler."); } } _incomingFromHTML; --------- Connect the handler to the event. --------- |
-------- Event handler function definition ----------------- Connect the handler to the event. --------- "MyIncomingFromHTMLHandler" is the name of the class that handles the event. "textCommandPalette_var" is a variable referencing a TextCommandPalette object. |