Command: snap

Syntax

snap <point> { ,<elist> ... }

Description

Snap to a position on a graphic primitive (entity) nearest to a seed position.

Parameters

Switches

Notes

A successful snap to an entity will set the value of the system epointer this. An unsuccessful snap will set the value of this to null.

Examples

Snap to a position on a polygon. The seed point is derived interactively. Record the position in a point identifier.

point pseed = pcur, panswer
snap pseed,polygon_filter,-op=panswer,-tol=1,-q
if (this) tell <'Successful snap to',this,'at',panswer>
else tell 'Snap failed'

See Also

Commands:

entity, group

Functions:

plock

Identifiers:

all (group), this (epointer)

Structures:

entity