Osnap

Enables or disables Rhino's object snap modeling aid.  Object snaps are tools for specifying points on existing objects.

Syntax

rhinoscriptsyntax.Osnap( enable=None )

rhinoscript.application.Osnap( enable=None )

Parameters

enable

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

Returns

Boolean

If enable is not specified, then the current object snap status if successful.

Boolean

If enable is specified, then the previous object snap status if successful.

Example

import rhinoscriptsyntax as rs

if not rs.Osnap(): rs.Osnap(True)

Also See

Ortho

OsnapMode

Planar

Snap