Click or drag to resize

ObjectTableSetSelectedObjects Method

Set object selection.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public int SetSelectedObjects(
	IEnumerable<Guid> objectIds,
	bool syncHighlight,
	bool persistentSelect,
	bool ignoreGripsState,
	bool ignoreLayerLocking,
	bool ignoreLayerVisibility
)

Parameters

objectIds
Type: System.Collections.GenericIEnumerableGuid

[Missing <param name="objectIds"/> documentation for "M:Rhino.DocObjects.Tables.ObjectTable.SetSelectedObjects(System.Collections.Generic.IEnumerable{System.Guid},System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]

syncHighlight
Type: SystemBoolean
If true, then the object is highlighted if it is selected and unhighlighted if is not selected.
persistentSelect
Type: SystemBoolean
Objects that are persistently selected stay selected when a command terminates.
ignoreGripsState
Type: SystemBoolean
If true, then objects with grips on can be selected. If false, then the value returned by the object's IsSelectableWithGripsOn() function decides if the object can be selected when it has grips turned on.
ignoreLayerLocking
Type: SystemBoolean
If true, then objects on locked layers can be selected.
ignoreLayerVisibility
Type: SystemBoolean
If true, then objects on hidden layers can be selectable.

Return Value

Type: Int32
Number of objects successfully selected.
Remarks
This method clears current selection before set the new one.
See Also