Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

‘Nearest To’ Position

  • Last UpdatedJan 08, 2026
  • 2 minute read

This 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 case shown below, 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.

    Figure 20:9. Use of the NEAREST Construction (1)

  2. NEW STRA

    FPT X150 Y250

    TPT NEAREST PREV ARC QUAL @

    Here, 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.

    Figure 20:10. Use of the NEAREST Construction (2)

  3. NEW MRKP

    DEF NEAR @

    Here, the MRKP element would be snapped to the primitive nearest the cursor hit. Note that in this case a qualifying point is not needed.

TitleResults for “How to create a CRG?”Also Available in