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)
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.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.5
See Also