Click or drag to resize

ObjectTableLock Method (Guid, Boolean)

If objref.Object().IsNormal() is true, then the object will be locked.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
public bool Lock(
	Guid objectId,
	bool ignoreLayerMode


Type: SystemGuid
Id of normal object to lock.
Type: SystemBoolean
if true, the object will be locked even if it is on a layer that is locked or off.

Return Value

Type: Boolean
true if the object was successfully locked.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also