SelectEvents.OnSelect Event

Parent Object: SelectEvents

Description

Event that occurs when the user selects an entity.

Syntax

SelectEvents.OnSelect( JustSelectedEntities As ObjectsEnumerator, SelectionDevice As SelectionDeviceEnum, ModelPosition As Point, ViewPosition As Point2d, View As View )

Parameters

Name Type Description
JustSelectedEntities ObjectsEnumerator Returns the object(s) that were just selected by the user. This may be the only one selected so far or the latest one in a series during this selection process. Multiple objects may be returned if the user does a window (area) select.
SelectionDevice SelectionDeviceEnum Input constant denoting whether the selection was made via a pick in a graphics window or was it by a pick in the browser or by some other means. An object can also be selected programmatically by calling the selection simulation methods on the CommandManager. A value of kGraphicsWindowSelection indicates it was selected in a graphic window. For all other values the View, ModelPosition, and ViewPosition arguments are meaningless.
ModelPosition Point Returns the coordinates that result from projecting the click point onto the selected entity. This is returned in centimeters relative to model space. Applicable only when the SelectionDevice argument is kGraphicsWindowSelection.
ViewPosition Point2d Returns the coordinates that specify the current location of the mouse pointer in window space and are returned in pixels. Applicable only when the SelectionDevice argument is kGraphicsWindowSelection.
View View Returns the View object where the selection took place. Applicable only when the SelectionDevice argument is kGraphicsWindowSelection.

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.

Version

Introduced in version 5