Verifies that an object is a reference object. Reference objects are object that are not part of the current document.
rhinoscriptsyntax.IsObjectReference (object_id)
rhinoscript.object.IsObjectReference (object_id)
object_id |
Required. String or Guid. The identifier of an object. |
True |
The object is a reference object. |
False |
The object is not a reference object. |
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."