LockObject

Locks a single object.  Locked object are visible, and they can be snapped to.  But, they cannot be selected.

Syntax

rhinoscriptsyntax.LockObject (object_id)

rhinoscript.object.LockObject (object_id)

Parameters

object_id

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

Returns

Boolean

True or false indicating success or failure.

Example

import rhinoscriptsyntax as rs

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

if id: rs.LockObject(id)

Also See

IsObjectLocked

LockObjects

UnlockObject

UnlockObjects