124 lines
8.0 KiB
HTML
124 lines
8.0 KiB
HTML
<html><head><title>Std DependencyGraph</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Std DependencyGraph</h1></div>
|
|
|
|
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><table class="fcinfobox wikitable ct" >
|
|
<tr>
|
|
<td class="ctTitle">
|
|
<h3><span class="mw-headline" id="Std_DependencyGraph"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Std_DependencyGraph.png" class="image"><img alt="Std DependencyGraph.png" src="Std_DependencyGraph.png" width="32" height="32" /></a> Std DependencyGraph</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Menu location
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="Std_Tools_Menu.html" title="Std Tools Menu">Tools</a> → Dependency graph...
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Workbenches
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">All
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Default shortcut
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">None
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">See also
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">
|
|
</td></tr>
|
|
<tr>
|
|
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
|
|
<ul>
|
|
<li class="toclevel-1"><a href="#Std_DependencyGraph"><span class="tocnumber">1</span> <span class="toctext">Std DependencyGraph</span></a></li>
|
|
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
|
|
<li class="toclevel-1 tocsection-2"><a href="#Installation"><span class="tocnumber">3</span> <span class="toctext">Installation</span></a>
|
|
<ul>
|
|
<li class="toclevel-2 tocsection-3"><a href="#Windows"><span class="tocnumber">3.1</span> <span class="toctext">Windows</span></a></li>
|
|
<li class="toclevel-2 tocsection-4"><a href="#Mac.2FOSX"><span class="tocnumber">3.2</span> <span class="toctext">Mac/OSX</span></a></li>
|
|
<li class="toclevel-2 tocsection-5"><a href="#Linux"><span class="tocnumber">3.3</span> <span class="toctext">Linux</span></a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-6"><a href="#Configuration"><span class="tocnumber">4</span> <span class="toctext">Configuration</span></a></li>
|
|
<li class="toclevel-1 tocsection-7"><a href="#How_to_use"><span class="tocnumber">5</span> <span class="toctext">How to use</span></a></li>
|
|
<li class="toclevel-1 tocsection-8"><a href="#Save.2FExport"><span class="tocnumber">6</span> <span class="toctext">Save/Export</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>The <b>Dependency graph</b> displays the dependencies between objects in the active document as a graph. As opposed to the Model tree, objects are listed in reverse chronological order, with the first created object at the bottom.
|
|
</p><p>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.
|
|
</p><p>The dependency graph is purely a visualization tool, therefore it cannot be edited; it automatically updates if changes are made to the model.
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:DependencyGraph1.png" class="image" title="DependencyGraph1.png"><img alt="DependencyGraph1.png" src="DependencyGraph1.png" width="898" height="587" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Installation">Installation</span></h2>
|
|
<p>To use the Dependency graph, a third-party software named <a rel="nofollow" class="external text" href="http://graphviz.org/">Graphviz</a> needs to be installed first. If you do not have it pre-installed or it is installed in an unconventional location, FreeCAD will display the following dialogue:
|
|
</p>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FreeCAD-0.17-missing-Graphviz-error-dialogue.png" class="image"><img alt="FreeCAD-0.17-missing-Graphviz-error-dialogue.png" src="FreeCAD-0.17-missing-Graphviz-error-dialogue.png" width="479" height="138" /></a></div></div>
|
|
<h3><span class="mw-headline" id="Windows">Windows</span></h3>
|
|
<p>Download the <b>graphviz-2.xx.msi</b> installer from the <a rel="nofollow" class="external text" href="https://graphviz.gitlab.io/_pages/Download/Download_windows.html">Graphviz Download page</a> and launch it to install it.
|
|
</p>
|
|
<h3><span class="mw-headline" id="Mac.2FOSX">Mac/OSX</span></h3>
|
|
<p>You can install graphviz using <a rel="nofollow" class="external text" href="https://brew.sh/">Homebrew</a>:
|
|
</p>
|
|
<pre>$ brew install graphviz </pre>
|
|
<p>This installs the graphviz binaries under /usr/local/bin. Unfortunately we can't navigate directly there from the file dialog that comes up from FreeCAD->Tools->Dependency graph.
|
|
When you get the file selection dialog use the keys Cmd+Shift+G to get an input field for the path. Enter
|
|
</p>
|
|
<pre>/usr/local/bin </pre>
|
|
<p>and confirm the input field and the file selection dialog.
|
|
</p><p>In case the Graphviz binaries are installed in a non-standard location try to find the program with the command
|
|
</p>
|
|
<pre>$ type dot </pre>
|
|
<p>It will output something like
|
|
</p>
|
|
<pre>dot is /usr/local/bin/dot </pre>
|
|
<p>And therefore you can tell FreeCAD to look in that directory.
|
|
</p>
|
|
<h3><span class="mw-headline" id="Linux">Linux</span></h3>
|
|
<p>On most Linux distributions (Debian/Ubuntu, Fedora, OpenSUSE), you just need to install the graphviz package from the repositories. However, similarly to MacOSX, in cases where the Graphviz binaries are installed in a non-standard location, try to find the program with the command:
|
|
</p>
|
|
<pre>$ type dot </pre>
|
|
<p>It may output something like
|
|
</p>
|
|
<pre>dot is /usr/local/bin/dot </pre>
|
|
<p>And therefore you can point FreeCAD to look in that directory.
|
|
</p>
|
|
<h2><span class="mw-headline" id="Configuration">Configuration</span></h2>
|
|
<p>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.
|
|
</p>
|
|
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
|
|
<ol><li> Go to the <b>Tools → Dependency graph...</b> menu</li>
|
|
<li> A new tab titled <b>Dependency graph</b> opens over the main area of the FreeCAD window.</li>
|
|
<li> Use the mouse scroll wheel to zoom in / zoom out.</li>
|
|
<li> Use the horizontal slider at the bottom of the screen to pan the view sideways.</li></ol>
|
|
<h2><span class="mw-headline" id="Save.2FExport">Save/Export</span></h2>
|
|
<p>You can save/export the displayed dependency graph as an image file. While the Dependency graph tab is in the foreground:
|
|
</p>
|
|
<ul><li> Just choose <b>File</b> → <a href="Std_SaveAs.html" title="Std SaveAs">Save As</a> to save the graph as a picture (PNG/BMP/GIF/JPG), a vector graphic (SVG) or as a pdf-file (PDF).</li>
|
|
<li> <b>File</b> → <a href="Std_Export.html" title="Std Export">Export</a> or <b>Tools</b> → <a href="Std_ViewScreenShot.html" title="Std ViewScreenShot">Save picture</a> will <b>NOT</b> work.</li></ul>
|
|
<div style="clear:both"></div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Std_DependencyGraph&oldid=279733">http://www.freecadweb.org/wiki/index.php?title=Std_DependencyGraph&oldid=279733</a>"</div>
|
|
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
<div id="mw-navigation">
|
|
<h2>Navigation menu</h2>
|
|
|
|
</body></html> |