SnapToLocked

Returns or modifies Rhino's "snap-to-locked" setting, which controls whether or not object snaps work on locked objects and on objects on locked layers.

Syntax

Rhino.SnapToLocked ([blnEnable])

Parameters

blnEnable

Optional.  Boolean.  The new enabled status, either True or False

Returns

Boolean

If blnEnable is not specified, then the current "snap-to-locked" setting if successful.

Boolean

If blnEnable is specified, then the previous "snap-to-locked" setting if successful.

Example

If Not Rhino.SnapToLocked Then

Rhino.SnapToLocked True

End If

Also See

Ortho

Osnap

Planar