Does anyone know how to print a large dependency graph from a FreeCAD file? I searched the forum but to no avail.
Or, can it be reduced so that the whole graph can be viewed in the document window and then screen capture could be used?
I am using Windows 7 V0.13 Rev 1828
[SOLVED]Print Dependency Graph?
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
[SOLVED]Print Dependency Graph?
Last edited by ppemawm on Tue Sep 24, 2013 7:39 pm, edited 1 time in total.
"It is a poor workman who blames his tools..."
Re: Print Dependency Graph?
Yes, I too would like to know if it is possible to zoom in and out in the dependency graph window...
Re: Print Dependency Graph?
Neither printing nor zooming is possible. But you can enter this into the Python console
and copy it to a file. Now run in the graphviz utility and specify a path for the PNG output file.
Code: Select all
App.ActiveDocument.DependencyGraph
Re: Print Dependency Graph?
OK, so I am not too familiar with Python or Graphviz. But, I did try to follow the following steps:wmayer wrote:Code: Select all
App.ActiveDocument.DependencyGraph
and copy it to a file. Now run in the graphviz utility and specify a path for the PNG output file.
1. Inserted App.ActiveDocument.DependencyGraph into the Python console and executed the command which gave me a long string of characters between quotes
2. Copied the text between the '...' and opened GVEdit for GraphViz 1.01
3. Pasted the text into a new GVEdit file and selected 'Layout'
4. Which gave me many syntax errors in the Output Console that seems to say that the text is not in the format for GVEdit.
Is this the correct approach?
Any suggestions? A little more guidance would be helpful.
"It is a poor workman who blames his tools..."
Re: Print Dependency Graph?
Ah, it shows all the escape sequences. Then try this:
The graphviz executable can be started from command line and you can paste the copied text into the terminal. You have to check the parameters of graphviz how to create an image and in which format.
Code: Select all
print App.ActiveDocument.DependencyGraph
Re: Print Dependency Graph?
This works quite well:wmayer wrote:Ah, it shows all the escape sequences. Then try this:
Code: Select all
print App.ActiveDocument.DependencyGraph
1. Insert Print App.ActiveDocument.DependencyGraph into the Python console and execute the command
2. Copy all the text provided after the command including the last bracket }
3. Open GVEdit for GraphViz 1.01
3. Paste the text into a new GVEdit file and select GRAPH/Layout which will generate the dependency graph in the View window
4. Select 'View' / Fit to Window to view the whole graph
Thanks for all the help.
"It is a poor workman who blames his tools..."