Strumenti: Addon manager

From FreeCAD Documentation
Revision as of 19:43, 18 May 2020 by Renatorivo (talk | contribs) (Created page with "{{Docnav/it |Personalizzare gli strumenti | |Menu strumenti |IconL=Std_DlgCustomize.svg |IconR= |IconC=Freecad.svg }}")

Addon manager

Posizione nel menu
Strumenti → Addon manager
Ambiente
Tutti
Avvio veloce
Nessuno
Introdotto nella versione
0.17
Vedere anche
Macro, Ambienti complementari

Introduzione

Addon Manager è uno strumento per installare e gestire gli ambienti aggiuntivi e le macro forniti dalla comunità di FreeCAD. Se nel computer è installato il pacchetto git-python, Addon Manager lo usa per aggiornare gli ambienti installati, rendendo i download più veloci.

File:Std AddonMgr dialog.png

Interfaccia di Addon Manager

Utilizzo

  • Aprire il menu Template:StdMenu/it → Addon manager.
  • Per installare un workbench: scorrere l'elenco e selezionare il componente aggiuntivo. La descrizione del componente aggiuntivo viene visualizzata sotto l'elenco, assieme al collegamento alla pagina del componente aggiuntivo. Quindi premere il pulsante Install/update per installare il nuovo ambiente.

Per le macro, fare clic sulla scheda Macro e fare gli stessi passaggi.

  • Per rimuovere un workbench o una macro: scorrere l'elenco, selezionare il componente aggiuntivo quindi premere il pulsante Remove.
  • Per aggiornare un workbench o una macro: scorrere l'elenco, selezionare il componente aggiuntivo quindi premere il pulsante Install/update.
  • Per verificare gli aggiornamenti: premere il pulsante . (Nota: l'icona può apparire diversa a seconda del sistema operativo.) Gli aggiornamenti disponibili verranno riportati sotto l'elenco. Premendo di nuovo il pulsante di aggiornamento si aggiorneranno tutti gli aggiornamenti contemporaneamente.
  • Per eseguire una macro: prima installare la macro desiderata, quindi selezionarla nuovamente nell'elenco, quindi premere il tasto Esegui. La macro viene editata automaticamente nell'editor macro di FreeCAD, per visualizzare il codice.
  • Premere Chiudi per uscire dal manager.

Per far comparire nell'elenco e rendere disponili i nuovi ambienti bisogna riavviare FreeCAD . Gli ambienti vengono aggiunti alla fine, se si desidera averli in ordine alfabetico, è possibile riorganizzarli nella finestra di dialogo Personalizza.

Options

The Addon manager dialog box has two tabs on the left, one listing the available workbenches and the other listing the available macros. The information panel on the right will display the homepage of the selected addon.

Uninstall

  1. Select an installed addon on the Workbenches tab or the Macros tab.
  2. Press the Uninstall selected button.

Install/update

  1. Select an addon on the Workbenches tab or the Macros tab.
  2. Press the Install/update selected button.
  3. If you want to add a macro to a custom toolbar then don't forget to manually download the icon image file, if available, by clicking on the link on the homepage in the information panel. See Interface Customization.
  4. To change the position of an addon workbench in the Workbench selector list see Interface Customization.

Configuration

  1. Press the Configure... button.
  2. The Addon manager options dialog box opens.
  3. Optionally check the Automatically check for updates at start (requires GitPython) checkbox.
  4. Optionally add repositories to the Custom repositories list. Addons from these repositories will be added on the Workbenches tab or the Macros tab.
  5. Optionally choose proxy settings.
  6. Press the OK button or the Cancel button to close the dialog box.

Notes

  • The addons available in the Addon manager are not part of the official FreeCAD program and are not supported by the core FreeCAD development team. You should read the provided information carefully to make sure you know what you are installing.
  • Bug reports and feature requests should be made directly to the creator of the addon by visiting the indicated website. Many addon developers are regular users of the FreeCAD forum, and can also be contacted there.
  • If the GitPython package is installed on your computer the Addon manager will make use of it, making downloads faster.
  • You can also install addons manually. See How to install additional workbenches and How to install macros.

Information for developers

Se avete sviluppato un workbench o una macro e volete vederlo incluso in Addon Manager, leggete come farlo nelle pagine del repository (FreeCAD-addons e FreeCAD-macros). Se aggiungete la vostra macro a Macros recipes, non dovete fare nient'altro, essa verrà automaticamente selezionata da Addon Manager.

Python workbenches

Per i workbench Python, non è necessaria alcuna approvazione specifica per aggiungerlo a Addon manager e, essendo al di fuori del codice sorgente di FreeCAD, è possibile scegliere la licenza desiderata. Se si richiede che il proprio workbench sia aggiunto alla lista (senza la richiesta dei suoi autori non viene aggiunto nessun nuovo workbench), sia chiedendolo sul forum o aprendo una istanza nel repository FreeCAD-addons, il codice continua a rimanere sul repository git dell'autore, e viene semplicemente aggiunto come sottomodulo al repository FreeCAD-addons. Ovviamente, prima di aggiungere un nuovo workbench, viene data un'occhiata al codice per verificare che non contenga nulla di potenzialmente problematico.

C++ workbenches

Se si sviluppa un workbench in C++, esso non può essere eseguito direttamente dagli utenti e deve prima essere compilato. Quindi si hanno due opzioni, o fornire le versioni precompilate del proprio workbench per i diversi sistemi operativi, oppure si deve chiedere di unire il proprio codice al codice sorgente di FreeCAD. Per questo, si deve usare la licenza LGPL (o completamente compatibile come MIT o BSD), e si deve presentare i nuovi strumenti alla comunità nel forum di FreeCAD per la revisione. Quando il codice è stato testato e approvato, è necessario creare una biforcazione nel repository di FreeCAD, se non ancora fatto, e creare un nuovo ramo, inserirvi il codice e aprire una richiesta di pull in modo che il ramo venga unito al repository principale.