Verifies that a layer is expanded. Expanded layers can be viewed in Rhino's Layer dialog.
rhinoscriptsyntax.IsLayerExpanded (layer)
rhinoscript.layer.IsLayerExpanded (layer)
layer |
Required. String or Guid. The name or id of the layer to test. |
Boolean |
True if expanded, False if collapsed. |
import rhinoscriptsyntax as rs
if rs.IsLayerExpanded("Default"):
rs.ExpandLayer( "Default", False )