Просмотр DAG

From FreeCAD Documentation
This page is a translated version of the page DAG view and the translation is 68% complete.
Other languages:

Введение

DAG (Directed Acyclic Graph) - это направленный ациклический граф, который отображает взаимосвязи между различными объектами в документе. Этот иструмент предназначен в первую очередь для того, чтобы показать, зависимости между объектами в сложных моделях со множеством функций и ссылок, например созданных с помощью верстака PartDesign.

The DAG view resembles the graph that can be produced from a Git repository and its branches. Together with the standard tree view and the dependency graph, the DAG view is a tool to inspect the parametric history of objects in a document.

Пример

Простая модель связи объектов которой будут представлены разными способами.

Композитная модель с 2-ух мерными и 3-ех мерными формами.

Слева: объекты отображены в стандартном древовидном представлении. Справа: объекты представлены в виде DAG.

Отношения между объектами отображены в графе зависимостей.

Включение возможности просмотра DAG

The DAG view was introduced in 0.17 as an experimental feature for power users and developers, so they could troubleshoot complex models; therefore, the DAG view is not available by default.

Для того, чтобы сделать возможным просмотр DAG, откройте редактор параметров (через главное меню Инструменты → Редактор параметров...). И создайте следующую группу, если она еще не создана:

  • BaseApp/Preferences/DockWindows/DAGView

В группе создайте параметр Enabled, Boolean типа и установите его как true. Нажмите Сохранить на диск и закройте редактор параметров.

Перезапустите FreeCAD и откройте окно просмотра DAG через: Вид → Панели → Просмотор DAG.

In the parameter editor you can also change some properties in the following subgroup

  • BaseApp/Preferences/DAGView
  • FontPointSize - Set size of text font and can help with readability with high DPI displays. Set to 0 for default font size.
  • SelectionMode
    • 0 - single click selects an item. Ctrl-click to add items to selection.
    • 1 - every click adds/removes item to selection.
  • Direction - the order in which items are displayed.
    • 1 - child on top, parent under it
    • -1 - parent on top, children under it

Ссылки