You click a spare piece of line to cut it off, and the entire line vanishes. Or the opposite happens and nothing responds however often you click. Since the 2021 release the trim command in AutoCAD has two quite different modes, and most of the frustration comes from not knowing which one your machine is in.
This article separates the two and gives you a three-second check. For the whole drafting toolkit, the Institute runs an AutoCAD course for construction.
Two modes, and why your machine asks differently from your colleague's
This comes before everything else, because the rest depends on it.
The TRIMEXTENDMODE variable decides which way the command runs. Autodesk describes the Mode option as "Sets the default trim mode either to Quick, which uses all objects as potential cutting edges or to Standard, which prompts you to select cutting edges."
| Value | Mode | What the command does |
|---|---|---|
1 | Quick | Every object is a boundary; one click cuts |
0 | Standard | Asks you to pick boundaries first, then cuts |
The important part is elsewhere. The page for the TRIMEXTENDMODE variable gives an initial value of 1 and says it is saved in the Registry, not in the drawing.
So trimextendmode belongs to the machine, not the file. Change it once and that machine keeps the setting for every drawing afterwards. That is why the same file behaves differently on two desks.
The three-second check is to type TRIMEXTENDMODE and press Enter; AutoCAD prints the current number.
How to trim in AutoCAD: the four ways in
Read straight from the 2027 configuration files.
| Entry point | What to use |
|---|---|
| Full command | TRIM |
| Alias | TR |
| Ribbon | Home → Modify → Trim and Extend drop-down → Trim |
| Classic menu | Modify → Trim |
Autodesk sums up the job in one line: "Trims objects to meet the edges of other objects."
The prompts, step by step
The table quotes the Standard-mode prompts exactly as the 2027 release prints them, odd capitals and all.
| Step | The prompt | What you do |
|---|---|---|
| 0 | Current settings: Projection=UCS, Edge=None, Mode=Standard | A status line, not a question |
| 1 | Select cutting edges ... Select objects or [mOde] <select all>: | Pick the boundaries, or press Enter to take them all |
| 2 | Select object to trim or shift-select to extend or [cuTting edges/Fence/Crossing/mOde/Project/Edge/eRase]: | Click the part to remove, then Enter when finished |
Quick mode skips step 1 entirely and goes straight to step 2. It is genuinely faster, and the price is in the next section.
The mOde option in both prompts switches modes mid-command without remembering the variable name. Type O and choose Quick or Standard.
When the trim deletes the object instead of cutting it
This is the number one cause of grief, and it happens only in Quick mode.
Autodesk states it plainly on the command page: "In Quick mode, selecting an object that doesn't cross a boundary deletes the object instead." Click a line that nothing crosses and AutoCAD removes the whole line rather than doing nothing.
A 1000-unit line with a boundary placed at 600 settles it.
| Situation | Quick | Standard |
|---|---|---|
| A boundary crosses it | 600 left | 600 left |
| Nothing crosses it | the whole line goes | still 1000 |
In Standard mode that same click does nothing at all, because the line meets none of the boundaries you selected.
The practical consequence is nasty. You sweep through a batch of spare lines in Quick mode, a few of them cross nothing, and those disappear entirely. Your eye does not catch it because they were spare lines anyway.
If it has just happened, a single U brings them back. As a habit, set TRIMEXTENDMODE to 0 and work in Standard.
Nothing gets selected: three things to check
This is the second most common complaint, and it is nearly always one of three causes.
The layer is off. An object on a layer that is switched off cannot be selected at all, not even by a crossing window. AutoCAD cannot see it, so it can serve neither as one of the cutting edges in autocad nor as something to trim. Switch the layer on.
The layer is locked. The object still shows and can still be found, but editing commands are not allowed to change it. The giveaway is the padlock cursor when you hover over it. Unlock the layer and trim again.
The two objects do not actually meet. They look joined at full zoom but miss each other by a thousandth of a unit. That one is solved by EDGEMODE in the next section.
There is a rarer case as well. A line inside a block cannot be trimmed, because it belongs to the block rather than existing as its own object. Editing block contents is covered in our article on editing blocks in CAD.
The EDGEMODE variable: trimming to an extended edge
EDGEMODE is what separates a practised user from a beginner, because it solves the most maddening case of all.
Autodesk describes the Edge option as "Determines whether an object is trimmed at another object's extrapolated edge or only to an object that intersects it in 3D space." In short, it lets you trim to the imaginary extension of a boundary even when the two never actually touch.
The default in a new drawing is 0, meaning trim only at a real intersection. Here is a 1000-unit line with a short boundary that falls well short of it, in Standard mode.
EDGEMODE | Result |
|---|---|
0 | No trim; the line stays 1000 |
1 | Trims; the line becomes 600 |
So when two objects clearly ought to meet and AutoCAD refuses to cut, set EDGEMODE to 1 and try again. Switch it inside the command by typing E and choosing Extend.
One caution though. Setting it to 1 hides the symptom while the gap stays in the drawing, and that gap will spoil area figures later.
One last note for this section. In Quick mode EDGEMODE will not save you: an object crossing nothing is still deleted, whatever the variable says.
Trim hatch in AutoCAD: the straight answer
This question gets asked often enough to deserve a direct answer rather than a hedge.
The result is unambiguous. A 2000 × 1000 hatch with a line crossing its middle, clicked on the right-hand part, in both modes: the area still reads 2,000,000 and nothing is cut. In the same drawing a plain line under identical conditions trims normally.
So TRIM will not trim a hatch. The good news is that it does not delete one either, not even in Quick mode.
To shrink a hatch you edit its boundary rather than the hatch. Three ways work.
Drag the grips. Select an associative hatch and drag the boundary grips. The hatch recalculates itself.
Add an island. Type HATCHEDIT, choose Add, and pick inside the area to remove. That area becomes a hole in the hatch.
Trim the boundary and re-hatch. Cut the boundary with TRIM itself, then hatch the new region. Slower, but cleanest.
When a hatch refuses to appear or cannot be created at all, the causes are in our article on hatch not working in AutoCAD.
Three habits that make it quicker
These save more time than any other tip.
Press Enter at the boundary prompt. In Standard mode, Enter at Select objects or [mOde] <select all>: takes the whole drawing as boundaries. You get the speed of Quick while keeping the safety of Standard, because an object crossing nothing will not be deleted.
Hold Shift to extend instead. The prompt already says shift-select to extend. Hold Shift and click, and AutoCAD lengthens the object to the boundary rather than cutting it. No need to leave the command for EXTEND.
Use Fence for a whole row. Type F and drag a line across all the spare pieces. Everything that line passes through is trimmed in one pass.
When you need to clear everything on one side of a boundary, a separate command does it far faster, described in our article on the EXTRIM command.
Three things often repeated that are not true
| Often heard | What the 2027 release actually does |
|---|---|
| Trim never deletes anything | Quick mode deletes an object that crosses nothing |
| Quick mode is always the better choice | It is also the only mode that loses objects unintentionally |
| Trim can cut a hatch | The hatch keeps its full area in both modes |
Frequently asked questions
Why did the trim command in AutoCAD delete my whole line?
You are in Quick mode and nothing crossed that line. Press U to bring it back, then set TRIMEXTENDMODE to 0 if you want to rule it out.
How do I tell which mode my machine is in?
Type TRIMEXTENDMODE and press Enter. 1 is Quick, 0 is Standard. The first line of the command also reports Mode=.
Why does the same file behave differently on a colleague's machine?
Because the variable is saved in each machine's Registry rather than in the drawing.
Two objects clearly cross but AutoCAD will not trim. Why?
They most likely miss each other slightly. Set EDGEMODE to 1 to trim at the extended boundary.
How do I trim many objects at once?
Type F at the selection prompt and drag a line through all the spare pieces.
Can I extend something without leaving the trim command?
Yes. Hold Shift and click the object, and it lengthens to the boundary instead.