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
Properties
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 |
Gets/Sets the flag indicating whether the selection is enabled. |
ExpressSelectionEnabled |
Gets/Sets the flag indicating whether express selection is enabled which controls the behavior of selection when an assembly is open in Express mode. If the assembly is not in Express mode this property has no effect. |
IgnoreProfileInnerLoops |
Gets and sets whether to ignore inner loops during 2d and 3d sketch profile selection. This property defaults to False. |
MouseMoveEnabled |
Gets/Sets the flag indicating whether a mouse move should fire an event (OnPreSelectMouseMove). Default is TRUE. |
Parent |
Gets the parent object from whom this object can logically be reached. |
PreSelectBurnThrough |
Gets/Sets the flag indicating whether the preselected items will burn through. |
RestrictSelectionToOccurrence |
Read-write property that gets and sets the ComponentOccurrence to which the selection should be restricted. |
RestrictWindowSelectionToOccurrence |
Read-write property that gets and sets the ComponentOccurrence the window selection should be restricted to. |
SelectedEntities |
Gets an ObjectsEnumerator that presents all of the selected objects so far. |
SingleSelectEnabled |
Gets/Sets the flag indicating whether single select is enabled. |
Type |
Returns an ObjectTypeEnum indicating this object's type. |
WindowSelectEnabled |
Gets/Sets the flag indicating whether window select is enabled. |
Events
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
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