Shortcuts

AutoCAD Ctrl+z Shortcut: Undo last action

If you’re looking for a clear, step‑by‑step guide to using the Ctrl+Z shortcut in AutoCAD, this article explains what the shortcut does, how to use it correctly, why it sometimes doesn’t work, useful alternatives, practical examples, troubleshooting fixes and expert tips to protect your work.


What is the CTRL+Z shortcut?

Ctrl+Z in AutoCAD is the standard Undo shortcut: it reverses the most recent action(s) you performed in the drawing. Repeating Ctrl+Z steps back through earlier actions one at a time (or by group, depending on how actions were recorded). Undo is essential for correcting mistakes quickly without losing subsequent progress.


Quick explanation and common behaviors

  • Pressing Ctrl+Z performs the same operation as typing the UNDO command and selecting an appropriate option.
  • Ctrl+Z usually undoes the entire last command (for example, the whole MOVE or ERASE command), not just a single object inside that command.
  • Use Ctrl+Y (or the Redo command) to redo an action you just undid.
  • On AutoCAD for Mac, the equivalent is Command+Z (undo) and Command+Shift+Z (redo).
Read Also:  AutoCAD EPDF Shortcut : EXPORTPDF : Exports Drawing To PDF

How to use Ctrl+Z — Step by step

Basic undo

  1. Finish or cancel any active command (press Esc if needed).
  2. Press Ctrl+Z once to undo the last completed command or action.
  3. Press Ctrl+Z repeatedly to undo several previous steps one by one.

Using the Undo command for more control

  1. Type UNDO in the command line and press Enter.
  2. Choose an option:
    • Back or pressing Enter usually undoes the previous command.
    • Mark creates a restore point you can return to later.
    • Restore returns the drawing to a previously created mark.
  3. Use UNDO marks when you plan to try multiple edits and want a reliable return point.

Redoing undone actions

  • Press Ctrl+Y or type REDO to redo actions you have undone.

Examples (before / after descriptions)

  • Example 1 — Erase mistake:

    • Before: You accidentally erased a wall polyline.
    • After: Press Ctrl+Z once — the erased wall is restored.
  • Example 2 — Multiple edits:

    • Before: You moved several objects, then rotated a group, then changed layer properties.
    • After: Press Ctrl+Z repeatedly — each press reverses the most recent command in turn (layer change → rotate → move).
  • Example 3 — Using UNDO Mark:

    • Before: Create a Mark before making many trial edits.
    • After: When edits don’t work, use UNDO → Restore to return to the mark in a single step.

Why Ctrl+Z might not work (causes and fixes)

  • Cause: A command is still active.

    • Fix: Press Esc to cancel the active command, then try Ctrl+Z again.
  • Cause: Focus is inside a text editor or dialog (e.g., MTEXT editor) so Ctrl+Z applies to the text window instead of the drawing.

    • Fix: Close the editor (press Ctrl+Enter or use the close button) or click back in the drawing area, then undo.
  • Cause: Ctrl+Z shortcut has been removed or reassigned in the CUI/custom keyboard settings.

    • Fix: Restore the keyboard shortcut in the CUI (Customize user interface) or reset AutoCAD to default settings.
  • Cause: A third‑party LISP, script or macro disabled or cleared undo history.

    • Fix: Restart AutoCAD and avoid running the offending routine, or check the script/LISP to ensure it preserves undo.
  • Cause: drawing recovery or external file operation in progress (file locked, autosave).

    • Fix: Wait for the operation to finish, then use UNDO or Ctrl+Z.
  • Cause: The action is not undoable (rare — very low-level or external changes).

    • Fix: If the change is not undoable, restore from a saved file, backup, or use the Drawing Recovery Manager.
  • Diagnostic tip: Type UNDO at the command line. If the command line responds and options appear, Undo is available — the issue may be just the keyboard shortcut or focus.

Read Also:  AutoCAD LAS Shortcut : LAYERSTATE : Saves, Restores, And Manages Named Layer States

Alternative Undo and recovery methods

  • UNDO command: Type UNDO for detailed options (Mark, Restore, Back).
  • U alias: Type U and press Enter to quickly perform Undo (if enabled in your alias file).
  • OOPS: Restores the last erased objects even if other actions happened since the erase — useful when you only want back erased geometry.
  • REDO / Ctrl+Y: Reapplies the most recently undone action.
  • Quick Access Toolbar (QAT) Undo/Redo buttons: Click the Undo arrow or dropdown to select how many steps to undo at once.
  • Drawing Recovery Manager: Use this when a file has crashed — recover the most recent autosave.
  • Manual restore from saved versions: Use file backups or previous file versions if the undo history has been lost.

Tips and best practices

  • Save frequently and use incremental file saves (filename_v1.dwg, filename_v2.dwg).
  • Use UNDO Marks before making large or experimental changes so you can quickly restore to a safe point.
  • Add the Undo/Redo icons to the Quick Access Toolbar for one‑click access and dropdown step selection.
  • If you run custom LISP routines or scripts, ensure they preserve undo or inform users how to recover.
  • If Ctrl+Z stops working after customization, use Reset Settings to Default in the AutoCAD start menu to restore default shortcuts.
  • Consider using OOPS when only erased objects need to be restored — it’s faster than multiple undos sometimes.
  • Keep AutoCAD and your system drivers updated to reduce unexpected behavior affecting undo history.

FAQ — Can I undo after saving or closing the file?

Yes, you can undo after saving as long as you haven’t closed the drawing session. Once the file is closed, the undo history is cleared. To recover after closing, open a backup or an autosave (.bak or .sv$) file.

Read Also:  AutoCAD PON Shortcut : SHOWPALETTES : Restores The Display Of Hidden Palettes

FAQ — How many levels of undo does AutoCAD support?

AutoCAD supports multiple undo levels; the exact amount depends on available memory and settings, but typical modern versions support many levels sufficient for normal workflows.

FAQ — What is the difference between OOPS and UNDO?

OOPS restores the last erased objects only. UNDO reverses entire commands or actions. OOPS is useful when you only want back deleted geometry regardless of subsequent actions.

FAQ — Ctrl+Z works in some drawings but not others — why?

This often indicates drawing-specific customization, a running script, or a corrupted drawing. Try restarting AutoCAD, opening a different drawing, or using the Drawing Recovery Manager.

FAQ — Can I customize the Ctrl+Z key if it’s not working?

Yes. Open the CUI (Customize User Interface) and check keyboard shortcuts. You can reassign Ctrl+Z to the UNDO command or restore the default CUI.

FAQ — Does Ctrl+Z undo layer or dimension style changes?

Yes — most property and style changes are undoable. However, some external file operations or changes applied by external applications might not be undoable in AutoCAD.

FAQ — What should I do if undo clears after running a script?

Scripts and some LISP routines can clear or modify the undo stack. Avoid running untrusted scripts, or edit scripts to preserve undo marks (use UNDO MARK / UNDO RESTORE where applicable).

FAQ — Is there a way to undo only one object from a multi-object command?

If a command acted on multiple objects and you only want one back, consider:

  • Using UNDO and then redoing the steps you want to keep, or
  • Restoring from a mark you created before the command and redoing the desired operations manually.