Std ExportGraphviz/en

Description
Tools → Dependency graph...

It can be useful in analyzing a FreeCAD document and locating forks in a tree. The dependency graph layout will depend on which workbench was used to create the objects in the document. For example, in FreeCAD 0.16, a model exclusively made in the PartDesign workbench should display a linear dependency graph with a single vertical branch. A model made with Part operations will have many branches, but for a single part they will join up at the top after Boolean operations. If they don't, it means that they are separate objects.

The dependency graph is purely a visualization tool, therefore it cannot be edited; it automatically updates if changes are made to the model.



Installation
Windows: See http://graphviz.org/

Mac/OSX: You can install graphviz using brew:

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:

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

Ubuntu Linux: You just need to install the graphviz package from the Ubuntu repositories.

You don'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. It 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
With version 014.3700 and above you can save/export the displayed dependency graph.
 * Just choose File → Save As to save the graph as a picture (PNG/BMP/GIF/JPG), a vector graphic (SVG) or as a pdf-file (PDF).
 * File → Export or Tools → Save picture will NOT work.