SelectEvents Object


Description

The SelectEvents object supports a set of events that are fired when the user is selecting geometry. These events are fired when the user is selecting items from various UI elements such as the graphics window or the browser.

Methods

Name Description
AddSelectionFilter Adds a new filter (indication of the type of object(s) of interest) to the existing list of filters.
AddToSelectedEntities Adds an entity to the selected entities collection.
AddWindowSelectionFilter Adds a new filter (indication of the type of object(s) of interest) to the list of filters for Window Select (defaults to same filter list specified by AddSelectionFilter).
ClearSelectionFilter Clears out the filter list.
ClearWindowSelectionFilter Clears out the window selection filter list.
RemoveFromSelectedEntities Removes entities from the selected entities collection.
ResetSelections Resets the set of selections being recorded by this object to an empty set.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
Enabled
ExpressSelectionEnabled
IgnoreProfileInnerLoops
MouseMoveEnabled
Parent Gets the parent object from whom this object can logically be reached.
PreSelectBurnThrough
SelectedEntities Gets an ObjectsEnumerator that presents all of the selected objects so far.
SingleSelectEnabled
Type Returns an ObjectTypeEnum indicating this object's type.
WindowSelectEnabled

Events

Name Description
OnPreSelect Fires signaling that a particular object has been indicated as a potential candidate for selection.
OnPreSelectMouseMove Event that occurs while an object is in pre-select mode and the user is moving the mouse. This allows you to receive mouse input relative to the pre-selected object.
OnSelect Event that occurs when the user selects an entity.
OnStopPreSelect Event that occurs when the currently pre-selected entity stops being displayed in pre-selection highlight--happens usually when the user has moved his/her mouse away from the vicinity of the pre-selected entity. This way, the client programmer has the ability to display additional graphics on pre-select and with the OnStopPreSelect knows when to stop displaying this additional graphics. An example can be seen in the Sketch trim command. As you move the mouse over some sketch graphics, you see the preview of what the result will be if you select the object and when you move away this trimmed preview is taken away.
OnUnSelect Event that occurs when the user unselects an entity. This is done in the user interface by pressing the Shift button and selecting a previously selected entity.

Accessed From

InteractionEvents.SelectEvents

Samples

Name Description
Basic Selection Using Interaction Events This sample demonstrates using the selection events to select a face. Selection is dependent on events and VB only supports events within a class module.
Window Selection This sample demonstrates using the selection events to window-select multiple edges. Selection is dependent on events and VB only supports events within a class module.

Version

Introduced in version 5