RhinoCommon API
ObjectTableLock Method (RhinoObject, Boolean) |
If obj.IsNormal() is true, then the object will be locked.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool Lock( RhinoObject obj, bool ignoreLayerMode )
Public Function Lock ( obj As RhinoObject, ignoreLayerMode As Boolean ) As Boolean
Parameters
- obj
- Type: Rhino.DocObjectsRhinoObject
normal object to lock. - ignoreLayerMode
- Type: SystemBoolean
if true, the object will be locked even if it is on a layer that is locked or off.
Return Value
Type: Booleantrue if the object was successfully locked.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14