Locks one or more objects. Locked object are visible, and they can be snapped to. But, they cannot be selected.
rhinoscriptsyntax.LockObjects (object_ids)
rhinoscript.object.LockObjects (object_ids)
object_ids |
Required. List. A list of strings or Guids identifying the objects to lock. |
Number |
The number of objects locked. |
import rhinoscriptsyntax as rs
ids = rs.GetObjects("Select objects to lock")
if ids: rs.LockObjects(ids)