Returns or changes the visibility property of a layer. This method should be use instead of LayerMode.
Rhino.LayerVisible (strLayer [, blnVisible])
strLayer |
Required. String. The name or identifier of an existing layer. |
blnVisible |
Optional. Boolean. The new layer visibility. True = Visible, False = Hidden. |
Boolean |
If a layer mode is not specified, the current layer visibility if successful. |
Boolean |
If a layer mode is specified, the previous layer visibility if successful. |
Null |
If not successful, or on error. |
Dim arrLayers, strLayer
arrLayers = Rhino.LayerNames
If IsArray(arrLayers) Then
For Each strLayer In arrLayers
If Rhino.LayerVisible(strLayer) = False Then
Rhino.LayerVisible strLayer, True
End If
Next
End If