IsObjectLocked

Verifies that an object is locked.  Locked object are visible, and they can be snapped to.  But, they cannot be selected.

Syntax

rhinoscriptsyntax.IsObjectLocked (object_id)

rhinoscript.object.IsObjectLocked (object_id)

Parameters

object_id

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

Returns

True

The object is locked.

False

The object is not locked.

Example

import rhinoscriptsyntax as rs

# Do something here...

if rs.IsObjectLocked(object):

    print "The object is locked."

else:

    print "The object is not locked."

Also See

IsObject

IsObjectHidden

IsObjectInGroup

IsObjectNormal

IsObjectReference

IsObjectSelectable

IsObjectSelected

IsObjectSolid