Std DlgMacroExecute: Difference between revisions

From LabRPS Documentation
Jump to navigation Jump to search
(Created page with "{{Docnav |DlgMacroRecord |DlgMacroExecuteDirect |Std Macro Menu |IconL=Std_DlgMacroRecord.svg |IconR=Std_DlgMacroExecuteDirect.svg |IconC=Labrps.svg }} {{GuiCommand |Name=Std DlgMacroExecute |MenuLocation=Macro → Macros... |Phenomena=All |Workbenches=All |SeeAlso=Std DlgMacroExecuteDirect }} ==Description== The '''Std DlgMacroExecute''' command opens the Execute ma...")
 
 
(3 intermediate revisions by the same user not shown)
Line 20: Line 20:
The '''Std DlgMacroExecute''' command opens the Execute macro dialog box. From this dialog box macros can be executed, edited and managed.
The '''Std DlgMacroExecute''' command opens the Execute macro dialog box. From this dialog box macros can be executed, edited and managed.


[[Image:Std_DlgMacroExecute_dialog.png|300px]]
[[Image:Macros.png|500px]]
{{Caption|The Execute macro dialog box}}
{{Caption|The Execute macro dialog box}}


Line 122: Line 122:
See also: [[Preferences_Editor|Preferences Editor]].
See also: [[Preferences_Editor|Preferences Editor]].


* The user macros location can also be changed in the preferences: {{MenuCommand|Edit → Preferences... → Python → Macro → Macro path}}.
* The user macros location can also be changed in the preferences: {{MenuCommand|Edit → Preferences... → General → Macro → Macro path}}.





Latest revision as of 15:37, 27 October 2024

Std DlgMacroExecute.svg Std DlgMacroExecute

Menu location
Macro → Macros...
Phenomena
All
Default shortcut
None
Introduced in version
-
See also
Std DlgMacroExecuteDirect

Description

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

Macros.png

The Execute macro dialog box

Usage

  1. There are several ways to invoke the command:
    • Press the Std DlgMacroExecute.svg Macros... button.
    • Select the Macro → Std DlgMacroExecute.svg Macros... option from the menu.
  2. The Execute macro dialog box opens. See Options.

Options

User macros

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

System macros

To make use of the System macros tab you must create a folder named Macro as a sibling folder of the bin folder where LabRPS is installed and put some macros there.
To find the bin folder enter this in the Python console:
App.getHomePath()
  1. Click a macro in the list to select it.
  2. The name of the selected macro will appear in the Macro name box.

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:
    • Select the macro in the list and press the Execute button.
    • Double-click the macro in the list.
  2. The dialog box closes.
  3. The macro is executed.

Close

  1. Press Esc or the Close button to close the dialog box.

Create

  1. Press the Create 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 .FCMacro extension.
  3. Press Enter or the OK 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 Delete button.
  3. Press the Yes button in the confirmation dialog box that pops up.

Edit

  1. Select the macro you want to edit in the list.
  2. Press the Edit 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 Rename button.
  3. Enter a new name in the dialog box that pops up. You do not have to include the .FCMacro extension.
  4. Press Enter or the OK button.

Duplicate

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

Toolbar

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

Download

  1. Press the Download button to start the Addon manager.

Notes

  • To learn more about macros see the Macros page.

Preferences

See also: Preferences Editor.

  • The user macros location can also be changed in the preferences: Edit → Preferences... → General → Macro → Macro path.