IsObjectReference

Verifies that an object is a reference object.  Reference objects are object that are not part of the current document.

Syntax

rhinoscriptsyntax.IsObjectReference (object_id)

rhinoscript.object.IsObjectReference (object_id)

Parameters

object_id

Required.  String or Guid.  The identifier of an object.

Returns

True

The object is a reference object.

False

The object is not a reference object.

Example

import rhinoscriptsyntax as rs

id = rs.GetObject("Select object")

if rs.IsObjectReference(id):

    print "The object is a reference object."

else:

    print "The object is not a reference object."

Also See

IsObject

IsObjectHidden

IsObjectInGroup

IsObjectLocked

IsObjectNormal

IsObjectSelectable

IsObjectSelected

IsObjectSolid