Home > 02 Basic Tools > Undoing and Redoing the Commands

Undoing and Redoing the Commands


If you made a mistake, or you want to cancel previous steps, undo your last commands.

\undo

Undo your last command. If you type \undo on the input line, you may undo a number of consecutive commands, e.g., \undo 2. The model is restored to as it was before the immediately preceding command. The default number of steps is 3. If you want to change this number, see below.
Undo reverses only those commands that produce an actual change in the model even after the Save (\save) command. This means that if you have made changes to an existing file and saved it, you can still undo the operation made prior to the save. The commands for viewing, queries and configuration are not affected by the undo command. You cannot apply undo to \clear or \open.
You can apply undo to your previous view commands by scrolling your previous views. See Viewing, Returning to previous view (\viewp, \prvs) commands.
Redoing after Undoing a Command
Redo redoes one or more commands immediately after they are deleted using undo command.
\redo


If you decide that you would like to keep a change after all, use the redo feature to restore those actions that you just canceled with the undo command.
You can redo the previous undo command, or if you type \redo on the input line, you may redo a number of previous commands, e.g. \redo 3.
Reset the Number of Undo/Redo Steps
You can increase or decrease the number \undo and \redo steps. Increasing the number of steps reduces the amount of available memory. Use this command to reduce the number of undo steps before executing memory consuming procedures.
\setundo


If you decrease the number of undo steps, all previous steps are cleared from your system, releasing your memory resources. The default number of steps is 50.