Std Redo: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 53: Line 53:
import FreeCAD
import FreeCAD


FreeCADGui.ActiveDocument.redo()
FreeCAD.ActiveDocument.redo()
}}
}}
<translate>
<translate>

Revision as of 18:24, 21 March 2020

Std Redo

Menu location
Edit → Redo
Workbenches
All
Default shortcut
Ctrl+Y
Introduced in version
-
See also
Std Undo

Description

The Std Redo command reverses the action of the Std Undo command.

Usage

  1. There are several ways to invoke the command:
    • Press the Std Redo button.
    • Select the Edit → Redo option from the menu.
    • Use the keyboard shortcut: Ctrl+Y.

Options

  • To redo multiple actions click on the black down arrow to the right of the Std Redo button and select from the list.

Preferences

  • The Undo/Redo functionality can be disabled by setting Tools → Edit parameters... → BaseApp → Preferences → Document → UsingUndo to false. This setting can also be changed in the Preferences Editor.
  • The maximum number of Undo/Redo steps is controlled by Tools → Edit parameters... → BaseApp → Preferences → Document → MaxUndoSize. This setting can also be changed in the Preferences Editor.

Scripting

See also: FreeCAD Scripting Basics.

To redo an action that has just been undone use the redo method of the document object.

import FreeCAD

FreeCAD.ActiveDocument.redo()