Verifies that an object is in either page layout space or model space.
rhinoscriptsyntax.IsLayoutObject (object_id)
rhinoscript.object.IsLayoutObject (object_id)
object_id |
Required. String or Guid. The identifier of an object. |
True |
The object is in page layout space. |
False |
The object is in model space. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select object")
if id:
if rs.IsLayoutObject(id):
print "The object is in page layout space."
else:
print "The object is in model space."