Reversing and Recovering Actions

You can erase the changes done to a document to return it to its previous state.


Before you begin:
  • By default, Undo and Redo keep a track of up to ten of your last actions. You can change the stack size in the PCS preferences.
  • There is one global stack per session and not one stack per document open in the session. If you reverse an action that requires modifications in several documents, this reverses all the modifications done by this action in all the documents open in the session.
From the Standard section of the action bar, click the appropriate command.

Command Description

Undo

(or press Ctrl+Z)

Cancels the last performed action (the last single click), even when a command runs in repeat mode.

The standard actions that you can reverse are as follows:

  • Command start: in most cases, you can reverse the command, but not recover it. When reversed, you go back to the default command, which is Select. You can stop the default command only if you run a command that creates, modifies, or updates data.
  • User interaction in a command: you can reverse and recover the command if allowed by the app. In that case, you go back to the previous dialog step.
  • Command end: modifications made since the beginning of the command are stored in a global reversible and recoverable action.
  • UI-activation: you go back to the previously UI-activated object.

Important:
  • Undo does not let you restore default preferences.
  • To reverse all repetitions of a command, first press Esc to stop repeat mode, and then click to reverse the actions.

Redo

(or press Ctrl+Y)

Recovers the last performed action.

You can recover only actions canceled through Undo .

When there is no action to recover, Repeat replaces Redo to let you restart the last command you used. However, when you interrupt a command run in repeat mode, the command automatically restarts afterward, even if you click Cancel. To interrupt a command in repeat mode, press Esc or select another command.

Important:
  • If you run Undo in repeat mode to reverse a command instance, you cannot recover any action.
  • If you run Undo after exiting repeat mode, you recover the command instance that you have previously canceled. If you recover the first instance in the list, it restarts in repeat mode. Exiting repeat mode means that you also exit the command.

You can reverse then recover local actions when you are in the command. If you reverse the command itself, you cannot recover the local actions.

Undo/Redo Overview

Displays an overview of actions that you can reverse or recover in the active objects.

The top of the dialog box displays the name of the object open in the current editor.

The Undo/Redo Overview dialog box contains two columns:

  • The left column shows the actions that you can reverse from the numbered list, the most recent action appears at the top of the list.
  • The right column shows the actions that you can recover from the numbered list, the most recently reversed action appears at the top of the list.

Do one of the following:

  • Click to reverse the first action in the list. This also transfers the action to the right part of the dialog box.

    Important:
    • If the action you want to reverse impacts an object open in another editor, you cannot reverse it.
    • The Undo stack is emptied after the creation of an entity.

  • Click to recover the first action in the list. This also transfers the transfers to the left part of the dialog box.

    Important:
    • If you cannot recover an action, the action is removed from the left column but it is not visible in the right column.
    • The Redo stack is emptied after clicking the icon.

  • From the list, select an action, and then click or to recover or reverse all former actions at once.
  • Click Flush to remove from the history all finished global actions performed in the current editor.

    This lets you manage more precisely the Undo log without modifying the Stack size value in the PCS preferences, and helps you consume less memory.

Result:

Important: Actions performed through a macro do not behave the same when running the Undo or Redo command. Some macro APIs can create undo steps whereas others cannot. For example, the point creation automation API does not create any undo step whereas the Point command does.

Actions performed through a macro can also be concatenated inside the undo steps of the current command. This is the case when the selection command is active, which is the default when no other command is running. For example:

  1. The selection command is active and you undo some actions.
  2. You run a macro to create some features.
  3. You perform an empty selection.
  4. This empty selection creates an undo step concatenating all the actions performed during the undo transaction created in the step 1, including the actions performed in step 2.