Strumenti: Addon manager

From FreeCAD Documentation
Revision as of 23:07, 7 April 2019 by Normandc (talk | contribs) (Created page with "* Le segnalazioni di bug e le richieste di funzionalità dovrebbero essere fatte direttamente al creatore del componente aggiuntivo visitando il sito Web indicato. Molti autor...")

Addon manager

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

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

Gli elenchi degli ambienti e delle macro installabili sono presi da due repository, FreeCAD-addons e FreeCAD-macros, rispettivamente, e dalgli Esempi di macro.

Interfaccia di Addon Manager

Utilizzo

  • Aprire il menu Strumenti → 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.

Installazione manuale

Se non si utilizza Addon Manager, è possibile installare manualmente i nuovi strumenti inserendo il loro codice nella directory FreeCAD/ dell'utente. Vedere i seguenti collegamenti per i dettagli:

Limitazioni

  • I componenti aggiuntivi non fanno parte del pacchetto FreeCAD ufficiale e non sono supportati dal team ddi sviluppatori di FreeCAD. È necessario leggere le informazioni fornite su ciascuna delle pagine della home del componente aggiuntivo prima di installare qualsiasi di essi, per essere sicuri di sapere cosa si sta installando.
  • Le segnalazioni di bug e le richieste di funzionalità dovrebbero essere fatte direttamente al creatore del componente aggiuntivo visitando il sito Web indicato. Molti autori aggiuntivi sono utenti regolari del forum di FreeCAD e possono essere contattati lì.
  • The web addresses of the repositories for add-ons and macros are hard coded into the AddonManager. As this application is written in Python, experienced users can change these locations by editing the appropriate fields in
$ROOT/Mod/AddonManager/AddonManager.py

where $ROOT is the installation directory of FreeCAD in your particular system, for example,

  • Linux: /usr/lib/freecad/Mod/AddonManager/AddonManager.py
  • Windows: C:\Program Files\FreeCAD version\Mod\AddonManager.py

New workbenches and macros

If you developed a workbench or macro, and want to see it included in the Addon Manager, read how to do that on the repository pages (FreeCAD-addons and FreeCAD-macros). If you add your macro to the Macros recipes, there is nothing else to do, it will automatically be picked by the Addon Manager.

For python workbenches, you don't need any specific approval to have your workbench added to the Addon Manager and, being outside the FreeCAD source code, you can choose the license you want. If you request for your workbench to be added to the list (we will not add any new workbench without a request from its authors), either by asking so on the forum or by opening an issue on the FreeCAD-addons repository, your code will stay on your own git repository, we will just add it as a submodule to the FreeCAD-addons repository. Of course, before adding your workbench, we will take a look at it and make sure there is nothing potentially problematic with it.

If you develop a workbench in C++, it cannot be run directly by users and must be compiled first. You then have 2 options, either you provide precompiled versions of your workbench yourself, for the different operating systems, or you should request to have your code merged into the FreeCAD source code. For that, you should use the LGPL license (or fully compatible like MIT or BSD), and you must present your new tools to the community in the FreeCAD forum for review. Once your code has been tested and approved, you should fork the FreeCAD repository, if not done yet, create a new branch, push your code to it, and open a pull request so that your branch is merged into the main repository.