IsLayerExpanded

Verifies that a layer is expanded. Expanded layers can be viewed in Rhino's Layer dialog.

Syntax

Rhino.IsLayerExpanded (strLayer)

Parameters

strLayer

Required.  String.  The name or identifier of the layer to test.

Returns

Boolean

True if expanded, False if collapsed.

Null

On error.

Example

If Rhino.IsLayerExpanded("Default") Then

  Rhino.ExpandLayer "Default", False

End If

Also See

ExpandLayer