IsLayerReference

Verifies that an existing layer is from a reference file.

Syntax

rhinoscriptsyntax.IsLayerReference (layer)

rhinoscript.layer.IsLayerReference (layer)

Parameters

layer

Required.  String or Guid.  The name or id of an existing layer.

Returns

True

If successful.

False

If not successful.

Example

import rhinoscriptsyntax as rs

layer = rs.GetString("Layer name")

if rs.IsLayer(layer):

    if rs.IsLayerReference(layer): print "The layer is a reference layer."

    else: print "The layer is not a reference layer."

else:

    print "The layer does not exist."

Also See

IsLayer

IsLayerChangeable

IsLayerEmpty

IsLayerLocked

IsLayerOn

IsLayerSelectable

IsLayerVisible