UnlockObjects

Unlocks one or more objects.  Locked object are visible, and they can be snapped to.  But, they cannot be selected.

Syntax

rhinoscriptsyntax.UnlockObjects (object_ids)

rhinoscript.object.UnlockObjects (object_ids)

Parameters

object_ids

Required.  List.  A list of Guids identifying the objects to unlock.

Returns

Number

The number of objects unlocked if successful.

Example

import rhinoscriptsyntax as rs

objs = rs.GetObjects("Select objects to lock")

if objs: rs.LockObjects(objs)

#Do something here...

rs.UnlockObjects( objs )

Also See

IsObjectLocked

LockObject

LockObjects

UnlockObject