IsLayoutObject

Verifies that an object is in either page layout space or model space.

Syntax

rhinoscriptsyntax.IsLayoutObject (object_id)

rhinoscript.object.IsLayoutObject (object_id)

Parameters

object_id

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

Returns

True

The object is in page layout space.

False

The object is in model space.

Example

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."

Also See

IsObject

IsObjectReference