OBSOLETE, use either LayerLocked or LayerVisible instead.
Returns or changes the mode of a layer.
Rhino.LayerMode (strLayer [, intMode])
strLayer |
Required. String. The name or identifier of an existing layer. |
||||||||
intMode |
Optional. Number. The new layer mode. The layer modes are as follows:
|
Number |
If a layer mode is not specified, the current layer mode if successful. |
Number |
If a layer mode is specified, the previous layer mode 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.LayerMode(strLayer) <> 0 Then
Rhino.LayerMode strLayer, 0
End If
Next
End If