Locks a single object. Locked object are visible, and they can be snapped to. But, they cannot be selected.
rhinoscriptsyntax.LockObject (object_id)
rhinoscript.object.LockObject (object_id)
object_id |
Required. String or Guid. The identifier of the object to lock. |
Boolean |
True or false indicating success or failure. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select object to lock")
if id: rs.LockObject(id)