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) Version: 5.1.50000.0 (5.0.20693.0)
public bool SetCurrentLayerIndex(
	int layerIndex,
	bool quiet


Type: SystemInt32
Value for new current layer. 0 <= layerIndex < LayerTable.Count. The layer's mode is automatically set to NormalMode.
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