AutoCAD Undo, Redo, OOPS and Selection Methods, With a Worked Example
Ctrl+Z, U, UNDO Mark and Back, REDO, MREDO and OOPS explained on one worked civil hall plan: which fix keeps your later work and which loses it, why undo stops working, and how window, crossing and lasso selection decide what you pick (3 objects vs 6 in our example).

To undo in AutoCAD, press Ctrl+Z or type U: each press reverses one operation. To redo, press Ctrl+Y or type REDO straight after the undo; MREDO redoes several steps at once. OOPS brings back the objects your last ERASE removed without undoing anything you drew since, and UNDO Mark plus UNDO Back lets you set a save point and jump back to it. For selection, click objects, drag left to right for a window (only objects fully inside) or right to left for a crossing (anything touched), and hold Shift to deselect.
In short (AutoCAD and AutoCAD LT 2027 help, checked 22 Nov 2026)
- U is the same as
UNDO 1. You can repeat it back to the start of the editing session; plotting and writing files cannot be undone.- REDO reverses one U or UNDO command and must come immediately after it. MREDO takes a number, All or Last.
- OOPS restores what the last ERASE (or BLOCK/WBLOCK with delete) removed. In Skill-Lync's worked example it fixes a mistake in 1 command where U costs you the door you drew afterwards.
- UNDOCTL starts at 53 = 1 + 4 + 16 + 32: undo on, Auto on, consecutive zooms and pans combined, layer-dialog changes combined.
- Window vs crossing: on our 12 m × 8 m hall plan, one rectangle picks 3 objects as a window and 6 as a crossing.
This guide is for civil engineering students and junior drafters in their first weeks of AutoCAD. It follows lesson 6 of Skill-Lync's AutoCAD Essentials for Civil Engineers course (cancelling, undo and selection methods), rewritten on 22 Nov 2026 against the AutoCAD 2027 help. Every command here also exists in AutoCAD LT 2027. The worked example is a simple hall plan: a 12 m × 8 m outer wall, a 230 mm inner wall line, three round columns of 400 mm diameter and a 900 mm door leaf.
How do I undo in AutoCAD?
Press Ctrl+Z, click the Undo arrow at the top of the window, or type U and press Enter. Each one reverses the most recent operation, and you can keep going one step at a time back to the state the drawing was in when you opened it in this session. AutoCAD prints the name of each command it steps back past.
Three details trip up beginners:
- U and UNDO are different commands. U has no options; it is exactly
UNDO 1. UNDO asks for a number or an option (Auto, Control, Begin, End, Mark, Back). - Undo inside a command. While you are still in LINE or PLINE, typing
uremoves only the last segment and keeps the command running. You do not lose the rest of the polyline. - Some things are not on the undo list. Plotting and writing files cannot be undone, and UNDO has no effect on commands that open, close or save a drawing, only display information, regenerate the view, or export to another format.
The Undo and Redo arrows also have drop-down lists, so you can pick "undo the last 5 actions" from the list instead of pressing Ctrl+Z five times.
How do I cancel a command in AutoCAD?
Press Esc. It stops the running command without finishing it, and pressing it again clears any objects that are still selected. Cancelling is not undoing: whatever the command had already completed stays in the drawing. If LINE has drawn three segments and you press Esc, the three segments remain; use U afterwards to remove them as one step.
What is the difference between U and UNDO?
U reverses one operation and asks no questions. UNDO is the full tool: type a number to reverse that many operations, or use its options to group actions, place marks and limit what undo records. UNDO 1 and U do exactly the same thing. Use U for everyday slips and UNDO when you need to jump back further in one move.
| Command or option | What it does | When to use it |
|---|---|---|
| U (Ctrl+Z) | Reverses the last operation | Everyday mistakes |
| UNDO n | Reverses n operations, but stops at a mark | Going back a known number of steps |
| UNDO Mark / Back | Places a save point / undoes everything after the most recent mark and removes it | Before trying a risky edit |
| UNDO Begin / End | Everything between the two counts as one operation | A multi-command edit you may want to reverse in one go |
| UNDO Control | All (full undo), None (undo off, history discarded), One (single step only) | Rarely; check it if undo stops working |
| UNDO Combine / Layer | Whether consecutive zooms and pans, and Layer dialog changes, count as one operation | Leave on (the default) |
How does the undo stream work? A worked example
AutoCAD keeps an ordered list of operations, newest last. Undo removes them from the end. Most commands add one entry, but the defaults merge some: three zoom and pan commands typed one after another become a single entry, and anything wrapped in UNDO Begin and End becomes one entry too. A mark is a divider in the list, not an operation.
Here is a short drafting session on the hall plan, typed in this order:
RECTANGfor the 12 m × 8 m outer wall line.OFFSETby 230 mm inwards for the inner wall line.ZOOM,PAN,ZOOMto frame the room.UNDO>Mark, before starting the columns.CIRCLEfor column C1 (radius 200 mm), then oneCOPYto place C2 and C3 at 3 m spacing.ERASEon C2: a slip, you meant to erase a construction line.LINEfor the 900 mm door leaf, before you notice the missing column.
Nine commands went in, but the stream holds 7 undo steps plus a mark, because the zoom, pan and zoom were merged. Our script plays each recovery through that stream:
- U once removes only the door leaf.
- UNDO 10 asks for ten steps but stops after 4 (LINE, ERASE, COPY, CIRCLE) because it meets the mark. The mark stays.
- UNDO Back undoes the same 4 steps and removes the mark. Run it again with no mark left and AutoCAD asks "This will undo everything. OK?"; answering yes would also remove the 3 earlier steps.
- One U on the merged view step reverses all three view changes. With Combine switched off, the same view changes would need 3 presses.
How do I redo in AutoCAD?
Press Ctrl+Y, click the Redo arrow, or type REDO immediately after an undo. REDO reverses exactly one U or UNDO command, so after UNDO 5 one REDO brings all five steps back. It only works straight after the undo; run any other command first and REDO has nothing to reverse. To redo several separate U presses at once, use MREDO.
One correction to an older version of this article: typing R does not redo. R is not an alias for REDO (in standard alias files it starts REDRAW, which only refreshes the screen; you can check yours under Manage > Edit Aliases). Type REDO in full or use Ctrl+Y.
What does MREDO do in AutoCAD?
MREDO (multiple redo) reverses several earlier U or UNDO commands in one go. At its prompt, type a number of actions, A for All, or L for Last. It exists because REDO only reverses the single most recent undo command: if you pressed U three separate times, REDO restores one step and MREDO 3 restores all three.
What is the OOPS command in AutoCAD?
OOPS restores the objects removed by the most recent ERASE, without undoing anything you did after that erase. It also works after BLOCK or WBLOCK when you chose to delete the original objects. It cannot bring back objects on a layer that has since been purged. Type OOPS at the command prompt and press Enter.
The difference from U matters in the worked example. You erased column C2 and then drew the door. Four ways to fix it give four different drawings:
| You type | Commands | Column C2 | Door leaf |
|---|---|---|---|
| OOPS | 1 | Back | Kept |
| U, U | 2 | Back | Lost |
| U, U, REDO | 3 | Erased again | Lost |
| U, U, MREDO 2 | 3 | Erased again | Back (you are where you started) |
| UNDO Back | 1 | Gone with all columns | Lost |
The third row is the trap. REDO reverses the most recent undo, and the most recent undo was the one that restored C2, so REDO erases it again. OOPS is the only one-command fix that keeps later work.
How do UNDO Mark, Back, Begin and End work?
UNDO Mark drops a save point into the undo stream; UNDO Back reverses everything after the most recent mark and removes that mark, and you can place as many marks as you like. UNDO Begin and UNDO End wrap several commands so that a single U reverses them together.
Two rules from the help: marks placed inside a Begin/End group disappear, and Mark and Back are unavailable while a group is open.
A practical civil use: before you trim and fillet the wall junctions of a whole floor, type UNDO > M. If the result looks wrong, UNDO > B takes you back in one move, however many trims you made. The read-only system variable UNDOMARKS shows how many marks are currently placed (it starts at 0).
For groups, our script draws a door swing as LINE + ARC + TRIM. Without a group that is 3 undo steps; inside UNDO Begin ... UNDO End it is 1, and one U removes the whole door. One caution from the help: if you type UNDO Begin and forget UNDO End, numbered undos will not go back past the begin point until you enter End, even if the group is empty.
Why is undo not working in AutoCAD?
The usual cause is that undo was limited or switched off with UNDO > Control. Check the read-only variable UNDOCTL: at its default of 53 everything works. A value that does not include 1 means undo is off; one that includes 2 means only one step can be undone. Type UNDO, choose C (Control), then A (All) to restore full undo.
UNDOCTL is a bitcode: the value is a sum of flags. Its initial value decodes as
that is, 1 = undo on, 4 = Auto on, 16 = consecutive zooms and pans grouped as one action, 32 = Layer dialog operations grouped as one action. The flag 8 is set while an UNDO Begin group is open, so in the middle of a group the bit table gives 53 + 8 = 61. Other causes worth checking:
- You are past the start of the session. U only reaches back to when you opened the drawing this time. Reopening a file starts a fresh undo history; for older states, go back to an earlier saved copy.
- A forgotten UNDO Begin. Numbered undos stop at the begin point until you type UNDO End.
- UNDO Control None. It turns off U and UNDO and discards the history saved so far, so switching back to All does not recover earlier steps.
- The operation was never undoable, such as a plot or a file export.
What are the selection methods in AutoCAD?
The basic methods are: click objects one at a time with the pickbox; drag left to right for a window, which takes only objects fully inside; drag right to left for a crossing, which also takes anything the rectangle touches; press, drag and release for a free-form lasso; and press Ctrl+A to select everything not on a locked or frozen layer.
At the Select objects prompt, press Enter when you have finished selecting. Hold Shift and click (or drag a window or crossing) to remove objects from the set, and press Esc to deselect everything. When you click and release, move the cursor and click again, you get a rectangle; when you click and drag without releasing, you get a lasso.
What is the difference between window and crossing selection?
A window, dragged from left to right, selects only objects that lie entirely inside the rectangle. A crossing, dragged from right to left, selects objects inside the rectangle and any object its edges cross. By default the window area is shaded in colour 150 (a blue) with a solid outline and the crossing area in colour 100 (a green) with a dashed outline.
In the hall plan, a rectangle from (2, 0.8) to (10, 8.6) m contains all three columns completely. The two wall lines are closed rectangles that run outside it on the left and right, and the door leaf runs from y = 0.23 m to 1.13 m, so the rectangle's bottom edge at y = 0.8 m cuts it. As a window the selection is 3 objects; as a crossing it is 6. That is why civil drafters use a window to pick columns inside a building without grabbing the walls, and a crossing to catch every pipe that passes through a zone.
One exception from the help: an object with a dashed linetype that is only partly visible on screen can be selected by a window if all its visible dashes are inside.
How does lasso selection work in AutoCAD?
Press the left mouse button on an empty part of the drawing, drag a free-form loop around the objects and release. Dragging to the left makes a crossing lasso and dragging to the right makes a window lasso, with the same rules as the rectangles. While you drag, press Spacebar to cycle between Window, Crossing and Fence.
Lasso is handy for irregular groups, such as the fixtures in one corner of a toilet block, where a rectangle would catch walls you want to leave alone.
How do I select overlapping objects in AutoCAD?
Hover over the spot so the top object highlights, then hold Shift and press Spacebar repeatedly to cycle through the objects under the cursor, and click when the one you want is highlighted. Alternatively press Ctrl+W to toggle selection cycling, which lets you choose from the overlapping objects.
Overlaps are common in civil drawings, where a gridline, a wall line and a beam line often sit on top of each other.
If clicking feels too fussy, the pickbox (the square at the cursor) may be small: its size is the PICKBOX system variable, 3 pixels by default. Set PICKBOX to 0 and selection preview stops working entirely.
Should I select objects before or after starting a command?
Either works by default. With PICKFIRST = 1 (the default) you can select objects first and then start a command such as ERASE or MOVE, which acts on them immediately. You can also start the command first and select at its Select objects prompt, which is the only way when PICKFIRST is 0 and where you can type selection options such as L or P.
Those typed options save time. At ERASE's prompt, L takes the last object drawn, P the previous selection set, ALL everything, and ? lists every option. The default PICKADD = 2 means each new pick adds to the set rather than replacing it. Ctrl+Shift+L reselects the previous set at any time. For Quick Select, Select Similar, Fence and window or crossing polygons, see our companion guide to Quick Select and advanced selection in AutoCAD.
Which shortcuts should I learn first?
Learn Ctrl+Z, Ctrl+Y, Esc and Shift-click first; they cover most day-to-day fixes. Then add OOPS for a wrong erase and Ctrl+Shift+L to reselect what you just picked. All of these are AutoCAD 2027 defaults, and the commands also exist in AutoCAD LT.
| Key or command | Action |
|---|---|
| Ctrl+Z / U | Undo one operation |
| Ctrl+Y / REDO | Cancel the preceding undo |
| MREDO | Redo several undone actions (number, All, Last) |
| OOPS | Restore what the last ERASE removed |
| Esc | Cancel the command; press again to clear the selection |
| Ctrl+A | Select all objects not on locked or frozen layers |
| Ctrl+Shift+L | Reselect the previous selection set |
| Shift + click | Remove an object from the selection |
| Shift + Spacebar | Cycle through overlapping objects |
| Ctrl+W | Toggle selection cycling |
Where do Skill-Lync courses fit?
Undo, cancel and selection are lesson 6 of the 60 lessons in Skill-Lync's AutoCAD Essentials for Civil Engineers, a recorded course of about 30 hours that goes on to layers, blocks, dimensions, layouts and a 3D model. The first three lessons are free on Grow, and you can compare every Skill-Lync AutoCAD course. As of 17 Nov 2026, Skill-Lync's placement records (n = 3,905) include 339 placements from the Master's in Civil Engineering program, mostly detailer and BIM modeller roles, with a median disclosed starting salary of ₹2.45 LPA (n = 328). These are self-reported entry-level offers, a starting point rather than a promise. Related guides in this series: the OFFSET command and polylines for civil drawings. Not sure which course suits your background? Talk to a Skill-Lync counsellor.
Frequently asked questions
What is the shortcut for redo in AutoCAD?
The redo shortcut is Ctrl+Y, which cancels the preceding undo. You can also type REDO or click the Redo arrow, but only immediately after an undo. To redo several separate undo steps at once, type MREDO and enter a number, A for all, or L for the last one. Typing R alone does not redo in AutoCAD.
How do I undo multiple steps in AutoCAD at once?
Type UNDO, enter the number of operations, and press Enter; UNDO 5 reverses five operations. You can also open the drop-down list next to the Undo arrow and pick a point in the history. Numbered undo stops early if it reaches a mark, so UNDO Back is the quicker way to return to a save point you placed.
Can I undo after saving an AutoCAD drawing?
Yes, within the same session. U steps back to the state the drawing was in when you opened it this time, and a save is not an operation UNDO reverses, so you can keep undoing past it. Once you close and reopen the drawing, the history starts fresh. For older states, open an earlier saved copy of the file.
Does OOPS work after several commands?
Yes. OOPS restores whatever the most recent ERASE removed, even if you have drawn or edited other things since, and it leaves that later work in place. It only remembers the last erase, so it cannot bring back objects from an earlier ERASE, and it cannot restore objects on a layer you have purged.
Why does AutoCAD select objects I did not want?
You probably dragged right to left, which makes a crossing selection that takes everything the rectangle touches. Drag left to right for a window that takes only objects fully inside. If old selections keep adding up, that is PICKADD at its default of 2; press Esc to clear the set, or Shift-click objects to remove them.
Sources and further reading
- Autodesk, About Correcting Mistakes, AutoCAD 2027 Help (accessed 22 Nov 2026)
- Autodesk, U (Command) and UNDO (Command), AutoCAD 2027 Help (accessed 22 Nov 2026)
- Autodesk, REDO, MREDO and OOPS, AutoCAD 2027 Help (accessed 22 Nov 2026)
- Autodesk, UNDOCTL and UNDOMARKS system variables, AutoCAD 2027 Help (accessed 22 Nov 2026)
- Autodesk, About Selecting Multiple Objects, About Selecting Objects Individually and To Select Objects, AutoCAD 2027 Help (accessed 22 Nov 2026)
- Autodesk, PICKFIRST, PICKADD, PICKBOX, WINDOWAREACOLOR and CROSSINGAREACOLOR, AutoCAD 2027 Help (accessed 22 Nov 2026)
- Autodesk, ERASE (Command), AutoCAD 2027 Help (accessed 22 Nov 2026)
- Autodesk, Shortcut Keys Reference, AutoCAD 2027 Customization Guide (accessed 22 Nov 2026)
- Skill-Lync, AutoCAD Essentials for Civil Engineers: course outline, lesson list and placement figures as of 17 Nov 2026


