IsLayerOn

Verifies that an existing layer is on.

Syntax

Rhino.IsLayerOn (strLayer)

Parameters

strLayer

Required.  String.  The name or identifier of an existing layer.

Returns

True

If successful.

False

If not successful.

Null

On error.

Example

Dim strLayer

strLayer = Rhino.GetString("Layer name")

If Rhino.IsLayer(strLayer) Then

If Rhino.IsLayerOn(strLayer) Then

Rhino.Print "The layer is on."

Else

Rhino.Print "The layer is not on."

End If

Else

Rhino.Print "The layer does not exist."

End If

Also See

IsLayer

IsLayerChangeable

IsLayerEmpty

IsLayerLocked

IsLayerReference

IsLayerSelectable

IsLayerVisible