Expands a layer. Expanded layers can be viewed in Rhino's Layer dialog.
rhinoscriptsyntax.ExpandLayer (layer, expand)
rhinoscript.layer.ExpandLayer (layer, expand)
layer |
Required. String. The name of the layer to expand. |
expand |
Required. Boolean. True to expand, False to collapse. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
if rs.IsLayerExpanded("Default"):
rs.ExpandLayer( "Default", False )