Skip to main content

Line

The line command draws individual straight-line segments stored as separate LINE entities in the DXF model. After each segment the command stays active and re-uses the endpoint as a new start point, so you can build connected paths one segment at a time. Unlike a Polyline, chained lines remain independent entities — each one can be trimmed, extended, or deleted without affecting its neighbours.

Drawing lines

  1. Type line in the terminal or click the Line toolbar button.
  2. Click the start point, or type X,Y and press Enter for an exact coordinate.
  3. Click the end point — the segment is placed and the endpoint becomes the next start point. Coordinate entry works here too.
  4. Keep clicking (or typing) to chain more segments.
  5. Press Enter or Escape to stop.
●──────────●──────────●──────────●
start 2nd click 3rd click Enter to finish
(auto-becomes next start)

Only need a single segment? Press Enter or Escape right after step 3.

Coordinate entry

Instead of clicking, type an exact position for the start or any subsequent point:

  1. Type the X value (digits, ., or -).
  2. Press , — the terminal shows [X], [Y{cursor}].
  3. Type the Y value.
  4. Press Enter to place the point.

Angle locking and exact length input

As you move the cursor after placing a point, the command watches for a 45° snap axis (0°, 45°, 90°, 135°, …). The angle locks when:

  • the cursor is at least 5 × grip size from the anchor, and
  • it is within 1 grip size of perpendicular distance from the nearest axis.

When locked the preview snaps to the axis and you can enter an exact length:

KeyAction
09, .Append digit to the length value
-Negative length — reverses direction along the axis (first character only)
BackspaceDelete the last typed character
EnterPlace the endpoint at the typed distance

The accumulated value is shown live in the terminal (e.g. click end point or enter length: 12.5). Click while locked and the click is projected onto the axis, so the endpoint always lies exactly on it.

Moving back close to the anchor point disengages the lock.

Keyboard reference

KeyAction
09, ., -Start X coordinate entry, or distance when angle-locked
,Lock X and move to Y entry
BackspaceDelete last typed character
EnterConfirm typed coordinate or length, or finish the chain if nothing is typed
EscapeFinish the chain and exit

Grip editing — stretching endpoints

A selected line shows three grips:

GripWhereWhat it does
StartFirst endpointDrag to reposition — the end stays fixed
MidpointCentre of the lineActivates Move for the whole line
EndSecond endpointDrag to reposition — the start stays fixed

Stretching one endpoint never affects the other. This differs from Polyline grip editing, where moving a vertex reshapes the entire path.

Selecting lines

MethodBehaviour
ClickSelects the line if the click is within hit-test distance of the segment
Drag right (strict)Line is selected only if both endpoints fall inside the box
Drag left (crossing)Line is selected if any part of the segment crosses the box boundary

Supported edit commands

Lines are the only entity that Trim and Extend operate on. All standard transformation commands also apply:

CommandWhat happens to a line
MoveTranslates both endpoints by the same displacement
CopyCreates an identical line at a new position
RotateRotates both endpoints around the chosen base point
MirrorReflects both endpoints across the mirror axis
ScaleScales both endpoints uniformly from the base point
OffsetCreates a parallel line at a fixed perpendicular distance
TrimCuts the line at intersections — lines only
ExtendStretches the nearest endpoint to reach a boundary — lines only
DeleteRemoves the line from the drawing

Properties

When a line is selected the properties panel shows every field that the DXF LINE record carries:

General

PropertyDefaultMeaning
Color256 (ByLayer)ACI color index
Layer0Layer assignment
LinetypeByLayerNamed linetype pattern
Linetype Scale1Scale factor on the linetype pattern
Thickness0Extrusion thickness

Geometry

PropertyMeaning
Start X / Start YFirst endpoint coordinates
End X / End YSecond endpoint coordinates

All fields are editable directly in the panel without re-running the command.

Line vs Polyline — when to use which

LinePolyline
Entity countOne LINE per segmentOne LWPOLYLINE for the whole path
Trim / ExtendYes — segment by segmentNo
Closed shapeNoYes (close flag)
Grip editingStretch individual endpointsMove any vertex along the path
Best forConstruction lines, single segments, geometry you'll trimContours, outlines, shapes you keep whole

DXF — LINE entity

Lines are saved as LINE entities in the DXF file. Every property — start/end coordinates, color, layer, linetype, linetype scale, and thickness — round-trips without loss. When you open a DXF that contains LINE entities they become fully editable Line objects in the editor.

Lines drawn in the editor are also written as LINE entities on save, so they are readable by AutoCAD, LibreCAD, and any other DXF-compatible application.