Click or drag to resize

LayerTableSetCurrentLayerIndex Method

At all times, there is a "current" layer. Unless otherwise specified, new objects are assigned to the current layer. The current layer is never locked, hidden, or deleted.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public bool SetCurrentLayerIndex(
	int layerIndex,
	bool quiet
)

Parameters

layerIndex
Type: SystemInt32
Value for new current layer. 0 <= layerIndex < LayerTable.Count. The layer's mode is automatically set to NormalMode.
quiet
Type: SystemBoolean
if true, then no warning message box pops up if the current layer request can't be satisfied.

Return Value

Type: Boolean
true if current layer index successfully set.
See Also