SPR2X

Extend two entities to their intersection.

SPR2X: select two lines (1, 2) and extend both to their intersection

Parameters

Does not accept parameters.

Notes

Select two lines. The second must belong to the current model.

The selection point does not determine which endpoint to extend. For each endpoint of a line, calculate the intersection of its first or last segment's straight line with the other line, accepting it only if it falls on the other line's first or last segment or its extension. If both endpoints yield valid intersections, use the endpoint closest to its intersection. If the first line yields none, try the second.

Move one endpoint of each line to the intersection:

  • If the intersection is beyond the endpoint, extend the line.
  • If it is on the first or last segment, trim the line.

If no valid intersection exists, sound the error tone and leave both lines unchanged.

If both lines have the same code and database attributes, join them into one with CONNECT.

If quality control rejects either extended line, retain both original lines and add neither new line.

Command characteristics

Command type Interactive command
Repeats automatically Yes
Menu option Edit/Polylines/Extend two existing lines to their intersection
Toolbar Extend/Cut
Extension DigiNG.OrdenesStandard.dll
Implementation Native
Related variables REPEAT — repeat the last command executed
Related commands SPR
SPR_M
SPR_D
SPR_PLANE
SPR_XYZ
EXTEND_END
CONNECT
Internal name