Locks a single object. Locked object are visible, and they can be snapped to. But, they cannot be selected.
Rhino.LockObject (strObject)
strObject |
Required. String. The identifier of the object to lock. |
Boolean |
True or false indicating success or failure. |
Null |
On error. |
Dim strObject
strObject = Rhino.GetObject("Select object to lock")
If Not IsNull(strObject) Then
Rhino.LockObject strObject
End If
'Do something here...
Rhino.UnlockObject strObject