This even fires when the user unselects an entity by clicking the mouse again on selected entity or canceling previous selection.
The entity and mouse position on the entity can be obtained through the Selection object returned through the selection property of the SelectionEventArgs object provided through the event.
-------- 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 MyUnselectEventHandler : public adsk::core::SelectionEventHandler { public: void notify(const Ptr<SelectionEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyUnselectEventHandler event handler."); } } _unselect; --------- Connect the handler to the event. ---------
|