RhinoCommon API
RhinoObjectSelectSubObject Method (ComponentIndex, Boolean, Boolean, Boolean) |
Reports if an object can be selected.
Namespace: Rhino.DocObjects
Assembly: RhinoCommon (in RhinoCommon.dll)

public int SelectSubObject( ComponentIndex componentIndex, bool select, bool syncHighlight, bool persistentSelect )
Public Function SelectSubObject ( componentIndex As ComponentIndex, select As Boolean, syncHighlight As Boolean, persistentSelect As Boolean ) As Integer
Parameters
- componentIndex
- Type: Rhino.GeometryComponentIndex
Index of subobject to check. - select
- Type: SystemBoolean
The new selection state; true activates selection. - syncHighlight
- Type: SystemBoolean
(default=true) If true, then the object is highlighted if it is selected and unhighlighted if is is not selected. - persistentSelect
- Type: SystemBoolean
When true, selection persists even after the current command terminates.
Return Value
Type: Int320: object is not selected
1: object is selected
2: object is selected persistently.

Objects that are locked, hidden, or on locked or hidden layers
cannot be selected. If IsSelectableWithGripsOn() returns false,
then an that object is not selectable if it has grips turned on.

Rhino for Windows
Supported in: 6.8