The LINE Statement
- Last UpdatedJan 07, 2026
- 1 minute read
LINE,<line_name>,<stp_pnt>
[/LINEEND=<end_pnt>]
[/LINEANGLE=(<len>,<ang>)]
[/LINEOFFS=<offs>];
<line_name> is the name of the line and has the type LINE_2D. The maximum length of <line_name> is 32 characters.
<stp_pnt> is the starting point of the line with the type POINT_2D.
LINEEND=<end_pnt>
<end_pnt> is the ending point of the line with the type POINT_2D.
LINEANGLE=(<len>,<ang>)
<len> is the length of the line and <ang> is the angle of the line, both with type DECIMAL.
LINEOFFS=<offs>
<offs> is the offset from the current point. It has the type STRING with at most 72 characters. The following formats are valid:
du, dv(for example, 100,50) or
length, angle(for example, 100,45D) or
length, verbal direction (for example, 100,N).
Verbal directions can be North, South, West, East, Right, Left, Up or Down. Only the first letter is relevant. If the string ends with a 'U' or a 'V', the u axis or the v axis will be locked. Angles must be followed by D (degrees) or R (radians).
The strings must only contain digits, a '-' or a '.'. '-' is only valid in the first position. Between the strings, it is allowed to have a couple of ' ' and ',' but at least one, either a ' ' or a ','. If one of the letters mentioned above is at a valid position, the rest of the string is ignored. Spaces in the beginning or the end of the string are removed.
Structure:
|
STARTPNT(1:2) |
(DECIMAL) |
|
|
ENDPNT(1:2) |
(DECIMAL) |
|
|
Example: |
||
|
GET/STRUCTURE=(X,<line_name>,'STARTPNT',1) |
||
|
/STRUCTURE=(Y,<line_name>,'ENDPNT','Y' |
||