Locks one or more objects. Locked object are visible, and they can be snapped to. But, they cannot be selected.
Rhino.LockObjects (arrObjects)
arrObjects |
Required. Array. An array of strings identifying the objects to lock. |
Number |
The number of objects locked if successful. |
Null |
If not successful, or on error. |
Dim arrObjects
arrObjects = Rhino.GetObjects("Select objects to lock")
If IsArray(arrObjects) Then
Rhino.LockObjects arrObjects
End If
'Do something here...
Rhino.UnlockObjects arrObjects