ExpandLayer

Expands a layer. Expanded layers can be viewed in Rhino's Layer dialog.

Syntax

Rhino.ExpandLayer (strLayer, blnExpand)

Parameters

strLayer

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

blnExpand

Required.  Boolean.  True to expand, False to collapse.

Returns

Boolean

True or False indicating success or failure.

Null

On error.

Example

If Rhino.IsLayerExpanded("Default") Then

  Rhino.ExpandLayer "Default", False

End If

Also See

IsLayerExpanded