Strumenti: Grafico delle dipendenze

From FreeCAD Documentation
Revision as of 18:11, 13 March 2017 by Renatorivo (talk | contribs)

Grafico delle dipendenze

Posizione nel menu
Strumenti → Grafico delle dipendenze...
Ambiente
Tutti
Avvio veloce
Nessuno
Introdotto nella versione
-
Vedere anche
Nessuno


Descrizione

Il 'Grafico delle dipendenze' mostra le dipendenze tra gli oggetti nel documento attivo come grafico. A differenza del modello, gli oggetti sono elencati in ordine cronologico inverso, con il primo oggetto creato nella parte inferiore.

Può essere utile per analizzare un documento di FreeCAD e localizzare le biforcazioni nell'albero della struttura. L'aspetto grafico delle dipendenze dipende da quale ambiente di lavoro è stato utilizzato per creare gli oggetti presenti nel documento. Ad esempio, in FreeCAD 0.16, un modello realizzato esclusivamente nell'ambiente PartDesign dovrebbe visualizzare un grafico delle dipendenze lineare con un singolo ramo verticale. Un modello realizzato con operazioni Parte ha molti rami, ma per avere una sola parte questi rami devono confluire in un unico elemento collocato in cima dopo le operazioni booleane. Se non lo fanno, vuol dire che ci sono degli oggetti separati.

Il grafico delle dipendenze è uno strumento di pura visualizzazione, quindi non può essere modificato; si aggiorna automaticamente se vengono apportate delle modifiche al modello.

DependencyGraph1.png

Installazione

To use the Dependency graph, a third-party software named Graphviz needs to be installed first.

Windows

Download the graphviz-2.xx.msi installer from the Download page and launch it to install it.

Mac/OSX

You can install graphviz using Homebrew:

$ brew install graphviz

This installs the graphviz binaries under /usr/local/bin. Unfortunately we can't navigate there from the file dialog that comes up from FreeCAD->Tools->Dependency graph. So let's create a link to /usr/local/bin in our home directory:

$ ln -s /usr/local/bin ~/

Now when asked to select the graphviz install directory go to your home directory and select "bin".

Linux

On most Linux distributions (Debian/Ubuntu, Fedora, OpenSUSE), you just need to install the graphviz package from the repositories.

Configuration

You shouldn't need any configuration of FreeCAD preferences. If FreeCAD cannot find the utility "dot" (from the Graphviz package) then a dialog comes up and asks the user for its path: set the path to the folder that contains the "dot" executable, do not select the executable itself. FreeCAD then tries to start the utility again and in case it succeeds the value is written automatically to the user parameters.

How to use

  1. Go to the Tools → Dependency graph... menu
  2. A new tab titled Dependency graph opens over the main area of the FreeCAD window.
  3. Use the mouse scroll wheel to zoom in / zoom out.
  4. Use the horizontal slider at the bottom of the screen to pan the view sideways.

Save/Export

You can save/export the displayed dependency graph as an image file. While the Dependency graph tab is in the foreground:

  • Just choose FileSave As to save the graph as a picture (PNG/BMP/GIF/JPG), a vector graphic (SVG) or as a pdf-file (PDF).
  • FileExport or ToolsSave picture will NOT work.