Trim

The trim command removes the portion of a Line, Arc, Circle, Ellipse, or Polyline that lies between two adjacent intersection points, splitting the entity into one or more remaining pieces. The segment to cut is determined by the cursor position โ€” hover over the part you want removed and click to trim it.

Trimming an entity

  1. Type trim in the terminal or click the Trim toolbar button.
  2. Hover over the segment you want to remove โ€” a preview highlights exactly the portion that will be cut.
  3. Click to remove that segment.

The command stays active after each trim, so you can continue hovering and clicking to cut more segments โ€” on the same entity or a different one. Press Escape to exit.

  Before:                     After trimming middle segment:

  โ”€โ”€โ”€โ”€โ”€โ”€โ—โ”€โ”€โ”€โ”€โ”€โ”€โ—โ”€โ”€โ”€โ”€โ”€โ”€        โ”€โ”€โ”€โ”€โ”€โ”€โ—          โ—โ”€โ”€โ”€โ”€โ”€โ”€
      intersect  intersect       (left part)  (right part)
                                 (middle segment removed)

How the trim segment is determined

The command projects the cursor position onto the hovered entity and finds all intersection points it has with other entities. These intersections divide the entity into segments โ€” for a Line, Arc, or open Polyline, the entityโ€™s own endpoints act as additional fixed boundaries. A full Circle or Ellipse, or a closed Polyline (including a Rectangle), has no endpoints of its own, so at least two intersection points are needed before it can be trimmed at all. The segment whose interval contains the cursorโ€™s projection is highlighted and will be removed on click.

  • Line, Arc, and open Polyline โ€” the removed segment can be the leading portion (before the first intersection), a middle portion (between two intersections, splitting the entity into two pieces), or the trailing portion (after the last intersection).
  • Circle, Ellipse, and closed Polyline/Rectangle โ€” since there is no fixed start or end, only the arc between two intersection points can be removed. With fewer than two intersections, no preview appears and clicking does nothing. The rest of the shape becomes the single remaining piece.

What trimming produces

EntityResult after trimming
LineUp to two shorter Line entities
ArcUp to two shorter Arc entities
CircleOne Arc entity โ€” the circleโ€™s closed shape is gone, so the remaining piece is stored as an arc
EllipseOne Ellipse entity with a start and end angle โ€” the remaining piece stays an Ellipse, now a partial one
Polyline (open)Up to two shorter Polyline entities
Polyline (closed) / RectangleOne open Polyline entity โ€” the closed shape is gone, so the remaining piece is stored open

Keyboard reference

KeyAction
EscapeExit trim mode

Supported entities

EntityCan be trimmed?
LineYes
ArcYes
CircleYes โ€” requires 2 or more intersection points
EllipseYes โ€” requires 2 or more intersection points
Polyline (open)Yes
Polyline (closed) / RectangleYes โ€” requires 2 or more intersection points
Text, Spline, Dimension, LeaderNo

The entities used as cutting boundaries can be a Line, Arc, Circle, Ellipse, or Polyline. Text, Spline, Dimension, and Leader entities never register intersections, so they canโ€™t act as boundaries either.

Trim vs Extend

TrimExtend
What it doesRemoves a segment of an entityStretches a line endpoint to a boundary
TriggerHover over the segment to cutHover near the endpoint to extend
ResultEntity splits or shortensLine endpoint moves to the boundary
Supported entitiesLine, Arc, Circle, Ellipse, PolylineLine only