Macroː Esegui la macro

From FreeCAD Documentation
Revision as of 12:02, 29 April 2023 by Marco T (talk | contribs)

Esegui la macro

Posizione nel menu
Macro → Esegui la macro
Ambiente
Tutti
Avvio veloce
Nessuno
Introdotto nella versione
-
Vedere anche
Esegui la macro nell'editor

Descrizione

Il comando Esegui la macro apre la finestra di dialogo Esegui macro. Da questa finestra di dialogo è possibile eseguire, modificare e gestire le macro.

La finestra di dialogo Esegui macro

Utilizzo

  1. Esistono diversi modi per invocare il comando:
    • Premere il pulsante Esegui la macro.
    • Selezionare l'opzione Macro → Macro... dal menu.
  2. Si apre la finestra di dialogo Esegui macro. Vedere Opzioni.

Opzioni

Macro utente

  1. La scheda Macro utente elenca le macro disponibili nella Posizione macro utente.
  2. Fare clic su una macro per selezionarla.
  3. Il nome della macro selezionata apparirà nella casella Nome macro.

Macro di sistema

La scheda Macro di sistema non è attualmente utilizzata.

Posizione delle macro utente

  1. Premere il pulsante ... per modificare la posizione delle macro utente.
  2. Passare ad una cartella diversa e selezionala.

Eseguire

  1. Per eseguire una macro, eseguire una delle seguenti operazioni:
    • Selezionare la macro nell'elenco e premere il pulsante Esegui.
    • Fare doppio clic sulla macro nell'elenco.
  2. La finestra di dialogo si chiude.
  3. La macro viene eseguita.

Chiudere

  1. Premere Esc o il pulsante Chiudi per chiudere la finestra di dialogo.

Crea

  1. Premere il pulsante Crea per creare un nuovo file macro.
  2. Immettere un nome nella finestra di dialogo che si apre. Non è necessario includere l'estensione .FCMacro.
  3. Premere Enter o il pulsante OK.
  4. Entrambe le finestre di dialogo si chiudono.
  5. Il nuovo file viene aperto nell'editor Macro.

Elimina

  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.

Addons

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

Notes

  • To learn more about macros see the Macros page.

Preferences

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