ExpandLayer

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

Syntax

rhinoscriptsyntax.ExpandLayer (layer, expand)

rhinoscript.layer.ExpandLayer (layer, expand)

Parameters

layer

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

expand

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

Returns

Boolean

True or False indicating success or failure.

Example

import rhinoscriptsyntax as rs

if rs.IsLayerExpanded("Default"):

    rs.ExpandLayer( "Default", False )

Also See

IsLayerExpanded