IsLayerExpanded

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

Syntax

rhinoscriptsyntax.IsLayerExpanded (layer)

rhinoscript.layer.IsLayerExpanded (layer)

Parameters

layer

Required.  String or Guid.  The name or id of the layer to test.

Returns

Boolean

True if expanded, False if collapsed.

Example

import rhinoscriptsyntax as rs

if rs.IsLayerExpanded("Default"):

    rs.ExpandLayer( "Default", False )

Also See

ExpandLayer