Std GrafoDependencia

From FreeCAD Documentation
Revision as of 06:31, 14 July 2021 by Maker (talk | contribs) (Created page with "Para utilizar el comando es necesario instalar un software de terceros llamado [http://graphviz.org/ Graphviz]. Si no lo tienes preinstalado o está instalado en una ubicació...")

Std GrafoDependencia

Ubicación en el Menú
Hierramientas → Grafo Dependencia...
Entornos de trabajo
Todo
Atajo de teclado por defecto
Ninguno
Introducido en versión
-
Ver también
Ninguno

Descripción

El comando Std GrafoDependencia muestra las dependencias entre los objetos del documento activo en un "gráfico de dependencias". A diferencia de la Vista de árbol, los objetos se enumeran en orden cronológico inverso, con el primer objeto creado en la parte inferior.

Puede ser útil para analizar un documento de FreeCAD y localizar bifurcaciones en un árbol. El diseño del gráfico de dependencia dependerá del ambiente de trabajo que se haya utilizado para crear los objetos en el documento. Por ejemplo, un modelo hecho exclusivamente en el ambiente de trabajo DiseñoPiezas puede mostrar un gráfico de dependencia lineal con una sola rama vertical. Un modelo hecho con operaciones Pieza tendrá muchas ramas, pero para una sola parte se unirán en la parte superior después de las operaciones Booleano. Si no lo hacen, significa que son objetos separados.

El gráfico de dependencias es una mera herramienta de visualización, por lo que no puede editarse. Se actualiza automáticamente si se realizan cambios en el modelo.

Ejemplo de un gráfico de dependencia con un cuerpo de DiseñoPiezas a la izquierda y un objeto creado con operaciones de Pieza a la derecha

Instalación

Para utilizar el comando es necesario instalar un software de terceros llamado Graphviz. Si no lo tienes preinstalado o está instalado en una ubicación no convencional, FreeCAD mostrará el siguiente diálogo:

Windows

Descarga el instalador graphviz-2.xx de la página Graphviz Download page y ejecútalo para instalarlo. Algunas versiones anteriores parecen tener problemas para mostrar el gráfico; se sabe que la versión 2.38 y las más recientes son fiables. Puedes encontrar todas las versiones de graphviz en Gitlab.

Mac/OSX

You can install graphviz using Homebrew. (While installing Homebrew, don't get nervous, if MacOS asks you to install updates, e.g. for the Xcode commandline tools. These updates are performed later by the installation process.)

brew install graphviz

This installs the graphviz binaries under /usr/local/bin. FreeCAD will look there all by itself. If the program is not found there you are asked to enter the path. Unfortunately we can't navigate directly there from the file dialog that comes up from Tools → Dependency graph.... When you get the file selection dialog you have two possibilities: You can use the key combination Cmd+Shift+. which will show you all the hidden items. Or you use the keys Cmd+Shift+G to get an input field for the path. Enter

/usr/local/bin

and confirm the input field and the file selection dialog.

In case the Graphviz binaries are installed in a non-standard location try to find the program with the command

type dot

It will output something like

dot is /usr/local/bin/dot

And therefore you can tell FreeCAD to look in that directory.

Linux

En la mayoría de las distribuciones de Linux (Debian/Ubuntu, Fedora, OpenSUSE), basta con instalar el paquete Graphviz desde los repositorios. Sin embargo, al igual que en Mac/OSX, en los casos en los que los binarios de Graphviz están instalados en una ubicación no estándar, intente encontrar el programa con el comando:

type dot

El resultado puede ser algo así como

dot is /usr/local/bin/dot

And therefore you can point FreeCAD to look in that directory.

Utilización

  1. Select the Tools → Dependency graph... option from the menu.
  2. A new tab titled Dependency graph opens in the Main view area.
  3. Use the mouse scroll wheel to zoom in or out.
  4. Use the sliders at the bottom and at the right of the screen to pan the view. Alternatively (introduced in version 0.19) hold down the left mouse button and move the mouse.

Guardar

You can save a dependency graph:

  1. Make sure the Dependency graph tab is in the foreground.
  2. Select the File → Save or File → Save As option from the menu.
  3. Enter a filename and select the file type (*.png, *.bmp, *.gif, *.jpg, *.svg or *.pdf).
  4. Press the Save button.

Principios generales

  • The graph shows objects in reverse chronological order.
  • The direction of arrows showing dependencies should always point down, from the child object to the parent object. An arrow pointing up indicates a cyclic dependency, an issue that needs to be resolved.
  • A sketch that contains links to external geometry will have a number with an 'x' suffix besides the arrow linking it to its parent, showing the number of external geometries linked in the sketch.
  • Objects can have dependencies to multiple parents. For example, for a model built in PartDesign, a Pocket may be linked to its Sketch and to the Pad feature that came before it.
  • Disallowed dependencies (for example, between a Draft/Part operation and an element inside a PartDesign Body) will show with a red arrow. This type of link usually shows a 'Links go out of allowed scope' error in the Report view.
  • A Part container and PartDesign Body enclose their content inside a frame with a randomly colored background. Their Origin also encloses its content (standard planes and axes) in a frame.
  • A Groups is displayed as a single element linked to its content.

Limitaciones

  • The dependency graph cannot help with the topological naming problem. If a sketch switches faces of a feature after an edit, it is still linked to the feature. Even if some features are broken, the dependency graph will remain unchanged.