Verifies that an object is locked. Locked objects are visible and can be snapped to, but they cannot be selected.
It is possible for an object to be unlocked, but reside on a layer that is locked. In such case, the object will still report as unlocked.
Rhino.IsObjectLocked (strObject)
strObject |
Required. String. The identifier of an object. |
True |
The object is locked. |
False |
The object is not locked. |
Null |
On error. |
Dim strObject
'Do something here...
If Rhino.IsObjectLocked(strObject) Then
Rhino.Print "The object is locked."
Else
Rhino.Print "The object is not locked."
End If