‘Nearest To’ Position
- Last UpdatedApr 27, 2023
- 1 minute read
The ‘nearest to’ position form of construction derives the point on a primitive that is nearest to a specified qualifying point.
Example
-
NEW MRKP
-
DEF NEAREST PREV STRA QUAL X150 Y250
In the left-hand example, the MRKP element and the position (X150, Y250) lie on the perpendicular to the STRA. In the right-hand case, the MRKP lies at the endpoint of the STRA. In both cases, the MRKP element is the nearest point that lies on the previous STRA in the list order to the given qualifying point.

-
NEW STRA
-
FPT X150 Y250
-
TPT NEAREST PREV ARC QUAL @
The STRA has its ‘from’ point defined explicitly, its ‘to’ point being defined as the nearest point which lies on the previous ARC in list order to the given qualifying point.

-
NEW MRKP
-
DEF NEAR @
The MRKP element is snapped to the primitive nearest the cursor hit. Note that in this case a qualifying point is not needed.