This event fires when the moused is moved away from an entity that was in a pre-select state. If your add-in has done something in reaction to the preSelect event, like draw some custom graphics, this event provides the notification to clean up whatever you've done that's associated with the current pre-select.
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 MyPreSelectEndEventHandler : public adsk::core::SelectionEventHandler { public: void notify(const Ptr<SelectionEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyPreSelectEndEventHandler event handler."); } } _preSelectEnd; --------- Connect the handler to the event. ---------
|