Std DlgMacroRecord

From FreeCAD Documentation
Revision as of 20:28, 12 February 2020 by Kunda1 (talk | contribs)

Std DlgMacroRecord

Menu location
Macro → Macro recording...
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Execute macro

Description

The Start Macro recording function initiates a recording session of a macro. This means it will record all operation the user makes in the 3D view. Once the user is finished with the sequence of action, the Stop Macro Recording functions ends the macro recording session. This is a powerful technique to record repetitive sequences of actions (in to python commands that can be saved in the a FreeCAD Macro file (.FCMacro)), that can be called upon at a later time or on a different computer.

Usage

Start the function with one of these methods before. The following window appears:

Macro recording

  • Macro name: Enter the name of the new macro.
  • Macro path: Path macro library. To change the path, click ... .
  • Record: Record the macro. Starts recording of everything that is done later. The button Stop the macro recording session in the macros toolbar turn green .
  • Stop: Stop recording the macro.
  • Cancel: Cancels and closes the window.

Once completed click Stop the macro recording session to stop recording the macro.

The macro can be called through Macro → Macros..., or with the Execute this macro button in the macro toolbar to be executed or modified as you want

Example

Click the button enter a name for the macro and validate, open a document, create a cube, change the color stop the macro with the button .

The macro is available in your macros directory.