UnlockObject

Unlocks a previously locked object.  Locked object are visible, and they can be snapped to.  But, they cannot be selected.

Syntax

rhinoscriptsyntax.UnlockObject (object_id)

rhinoscript.object.UnlockObject (object_id)

Parameters

object_id

Required.  String or Guid.  The identifier of the object to unlock.

Returns

Boolean

True or false indicating success or failure.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select object to lock")

if obj: rs.LockObject(obj)

#Do something here...

rs.UnlockObject( obj )

Also See

IsObjectLocked

LockObject

LockObjects

UnlockObjects