DAG view/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Created page with "{{Caption|Отношения между объектами отображены в графе зависимостей.}}")
 
(17 intermediate revisions by 2 users not shown)
Line 5: Line 5:
{{TOCright}}
{{TOCright}}


[[DAG_view/ru|DAG]] (Directed Acyclic Graph) - это [https://ru.wikipedia.org/wiki/%D0%9E%D1%80%D0%B8%D0%B5%D0%BD%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%BD%D1%8B%D0%B9_%D0%B0%D1%86%D0%B8%D0%BA%D0%BB%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9_%D0%B3%D1%80%D0%B0%D1%84 направленный ациклический граф], который отображает взаимосвязи между различными объектами в документе. Этот иструмент предназначен в первую очередь для того, чтобы показать, зависимости между объектами в сложных моделях со множеством функций и ссылок, например созданных с помощью [[Image:Workbench_PartDesign.svg|24px]] [[PartDesign_Workbench/ru|верстака PartDesign]].
The [[DAG view|DAG view]] is a [https://en.wikipedia.org/wiki/Directed_acyclic_graph directed acyclic graph] (DAG) that shows the relationships between different objects in the document. It is meant primarily to show how certain objects depend on others in a complex model with many features and references, such as those that can be created with the [[Image:Workbench_PartDesign.svg|24px]] [[PartDesign Workbench|PartDesign Workbench]].


The DAG view resembles the graph that can be produced from a Git repository and its branches. Together with the standard [[tree view|tree view]] and the [[Std_DependencyGraph|dependency graph]], the DAG view is a tool to inspect the parametric history of objects in a document.
The DAG view resembles the graph that can be produced from a Git repository and its branches. Together with the standard [[tree view|tree view]] and the [[Std_DependencyGraph|dependency graph]], the DAG view is a tool to inspect the parametric history of objects in a document.
Line 11: Line 11:
== Пример ==
== Пример ==


Простая модель связи объектов которой будут представлены разными способами.
A simple model will be seen with different views.


[[File:FreeCAD_DAG_view_3D.png]]
[[File:FreeCAD_DAG_view_3D.png]]
{{Caption|Композитная модель с 2-ух мерными и 3-ех мерными формами.}}
{{Caption|Model with 2D and 3D shapes.}}


[[File:FreeCAD_DAG_view_Tree_view.png]] [[File:FreeCAD_DAG_view.png|x500px]]
[[File:FreeCAD_DAG_view_Tree_view.png]] [[File:FreeCAD_DAG_view.png|x500px]]


{{Caption|Слева: объекты отображены в стандартном [[tree_view/ru|древовидном представлении]]. Справа: объекты представлены в виде DAG.}}
{{Caption|Left: objects shown in the standard [[tree view|tree view]]. Right: objects shown in the DAG view.}}


[[File:FreeCAD_DAG_view_Std_DependencyGraph.png]]
[[File:FreeCAD_DAG_view_Std_DependencyGraph.png]]


{{Caption|Relationships between the objects shown in the [[Std_DependencyGraph|dependency graph]].}}
{{Caption|Отношения между объектами отображены в [[Std_DependencyGraph/ru|графе зависимостей]].}}


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


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.
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, откройте [[Std_DlgParameter/ru| редактор параметров]] (через главное меню {{MenuCommand|Инструменты → Редактор параметров...}}). И создайте следующую группу, если она еще не создана:
To use this view use the [[Std DlgParameter|parameter editor]]. Create the following subgroup if it doesn't exist
* {{incode|BaseApp/Preferences/DockWindows/DAGView}}
* {{incode|BaseApp/Preferences/DockWindows/DAGView}}


В группе создайте параметр {{incode|Enabled}}, {{incode|Boolean}} типа и установите его как {{true}}. Нажмите '''Сохранить на диск''' и закройте редактор параметров.
then add the parameter {{incode|Enabled}} of type {{incode|Boolean}}, and set it to {{TRUE}}.


Then activate it, {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → PanelsDAG view}}.
Перезапустите FreeCAD и откройте окно просмотра DAG через: {{MenuCommand|{{StdMenu|[[Std_View_Menu/ru|Вид]]}} → ПанелиПросмотор DAG}}.


In the [[Std DlgParameter|parameter editor]] you can also change some properties in the following subgroup
In the [[Std DlgParameter|parameter editor]] you can also change some properties in the following subgroup
Line 43: Line 43:
* Direction - the order in which items are displayed.
* Direction - the order in which items are displayed.
** 1 - child on top, parent under it
** 1 - child on top, parent under it
** -1 - parent on top, children under it
** -1 - parent on top, children under it


== Links ==
== Ссылки ==


* [https://forum.freecadweb.org/viewtopic.php?f=20&t=11276 DAGView], forum thread presenting the new tool.
* [https://forum.freecadweb.org/viewtopic.php?f=20&t=11276 DAGView], forum thread presenting the new tool.

Latest revision as of 10:17, 17 December 2022

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

Ссылки