DRAW Reference Manual
Point and Line Construction
: ‘Nearest To’ Position
‘Nearest To’ Position
The ‘nearest to’ position form of construction derives the point on a primitive that is nearest to a specified qualifying point.
Example
1.
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.
2.
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.
3.
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.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.