Undo and redo
| Command | Shortcut | Effect |
|---|---|---|
| U | Ctrl+Z | Undoes the whole last command (a LINE with several segments goes away at once). |
| UNDO | Asks how many steps to undo, or an option (below). | |
| REDO | Ctrl+Y or Ctrl+Shift+Z | Redoes what U undid, right after it. |
The command line confirms what was undone: "Undone: LINE". A new command discards whatever there was to redo, as in AutoCAD. Inside LINE and PLINE, the Undo option (or Ctrl+Z while the command is still active) removes only the last segment; after the command ends, Ctrl+Z undoes the whole command.
UNDO has AutoCAD's options:
| Option | What it does |
|---|---|
| A number | Undoes that many steps (Enter: one). |
Mark (M) | Places a mark in the history. |
Back (B) | Undoes everything back to the last mark (with no mark, the whole history). |
BEgin (BE) and End (E) | Whatever is done between the two becomes a single undo step. |
Undo keeps the history in memory with a ceiling of 512 MiB (about two million ordinary commands). The oldest steps beyond the ceiling go to a file in the recovery folder (see Files), and U still reaches them, all the way back to the start of the drawing; closing the drawing deletes that file. The ceiling also applies to REDO: after many U's, the most distant redo steps go back to the file, and REDO reaches them one by one.
The history survives a crash: after Recover (see Recovery after a crash, in Files), U goes back through the same history as before the crash, including the steps that were in the file and those from before the last save, and REDO redoes what had been undone. A crash right after saving, with no changes to recover, does not lose the history either: when you open the file again, it opens as it was saved, without asking, and U goes back through the history from before the crash. If the file was changed externally in the meantime (saved by another window or another computer), the history no longer applies to it and is discarded.
Without a recovery folder (the Block Editor, REFEDIT), the long undo file goes in the system's temporary folder; in the browser, the steps stay in memory, compressed. The Block Editor and the REFEDIT working drawing have their own undo, which does not mix with the drawing's.
OOPS
Brings back what the last ERASE removed, even after other commands (which are not undone, unlike U). It works once for each ERASE; the objects come back as they were (on a layer that was deleted afterwards, they come back on the current one).