Verifies that an existing layer is selectable (normal and reference).
Rhino.IsLayerSelectable (strLayer)
strLayer |
Required. String. The name or identifier of an existing layer. |
True |
If successful. |
False |
If not successful. |
Null |
On error. |
Dim strLayer
strLayer = Rhino.GetString("Layer name")
If Rhino.IsLayer(strLayer) Then
If Rhino.IsLayerSelectable(strLayer) Then
Rhino.Print "The layer is selectable."
Else
Rhino.Print "The layer is not selectable."
End If
Else
Rhino.Print "The layer does not exist."
End If