展开一个图层。图层展开后就可以在 Rhino 图层面板中看到它的子图层。
rhinoscriptsyntax.ExpandLayer (layer, expand)
rhinoscript.layer.ExpandLayer (layer, expand)
layer |
必须参数。字符串。要展开图层的名称。 |
expand |
必须参数。布尔值。True 为展开, False 为折叠。 |
布尔值 |
True 或 False 表示执行完成或失败。 |
import rhinoscriptsyntax as rs
if rs.IsLayerExpanded("Default"):
rs.ExpandLayer( "Default", False )