Std DlgMacroExecute

Description
The Std DlgMacroExecute command opens the Execute macro dialog box. From this dialog box macros can be executed, edited and managed.



Usage

 * 1) There are several ways to invoke the command:
 * 2) * Press the button.
 * 3) * Select the option from the menu.
 * 4) The Execute macro dialog box opens. See Options.

Find file
This line edit widget is used to filter by filename those macros that appear in the macros file list. You may use regular expressions or simply enter text. Only those filenames that match the entered text will appear in the macro file list. All matches are case-insensitive. Note: both filters are applied sequentially, so only those files that match both the Find file text and that match the Find in files text will appear in the macro files list.

Find in files
This line edit widget is used to filter by file content those macros that appear in the macros file list. The text entered into this widget can be a regular expression or simple text. Only those files that have text content that matches the contents of this widget will appear in the macro files list. Note: both filters are applied sequentially, so only those files that match both the Find file text and that match the Find in files text will appear in the macro files list.

User macros

 * 1) The User macros tab lists the macros available in the User macros location.
 * 2) Click a macro to select it.
 * 3) The name of the selected macro will appear in the Macro name box.

System macros

 * The System macros tab is not used much at this time. To make use of this tab you must put some macros in a folder named "Macro" and it should a sibling folder of the bin folder where FreeCAD is installed.  To find this folder enter

in the python console, open it, and create a Macro folder there. These will appear in the System tab. These are just normal macros that work like any others.

User macros location

 * 1) Press the  button to change the user macros location.
 * 2) Browse to a different folder and select it.

Execute

 * 1) To execute a macro do one of the following:
 * 2) * Select the macro in the list and press the button.
 * 3) * Double-click the macro in the list.
 * 4) The dialog box closes.
 * 5) The macro is executed.

Close

 * 1) Press  or the  button to close the dialog box.

Create

 * 1) Press the  button to create a new macro file.
 * 2) Enter a name in the dialog box that pops up. You do not have to include the  extension.
 * 3) Press  or the  button.
 * 4) Both dialog boxes close.
 * 5) The new file is opened in the Macro editor.

Delete

 * 1) Select the macro you want to delete in the list.
 * 2) Press the  button.
 * 3) Press the  button in the confirmation dialog box that pops up.

Edit

 * 1) Select the macro you want to edit in the list.
 * 2) Press the  button.
 * 3) The dialog box closes.
 * 4) The selected file is opened in the Macro editor.

Rename

 * 1) Select the macro you want to rename in the list.
 * 2) Press the  button.
 * 3) Enter a new name in the dialog box that pops up. You do not have to include the  extension.
 * 4) Press  or the  button.

Duplicate

 * 1) Select the macro you want to duplicate in the list.
 * 2) Press the  button.
 * 3) Enter a new name in the dialog box that pops up. You do not have to include the  extension.
 * 4) Press  or the  button.

Toolbar

 * 1) Select the macro you want to add to a custom toolbar in the list.
 * 2) Press the  button.
 * 3) Two 'walkthrough' dialogs will guide you through the required steps. See Interface Customization for more information.

Download

 * 1) Press the  button to start the Addon manager.

Preferences

 * The user macros location can also be changed in the preferences: . See Preferences Editor.