Verifies that an object is locked. Locked object are visible, and they can be snapped to. But, they cannot be selected.
rhinoscriptsyntax.IsObjectLocked (object_id)
rhinoscript.object.IsObjectLocked (object_id)
object_id |
Required. String or Guid. The identifier of an object. |
True |
The object is locked. |
False |
The object is not locked. |
import rhinoscriptsyntax as rs
# Do something here...
if rs.IsObjectLocked(object):
print "The object is locked."
else:
print "The object is not locked."