Graph to show Part of Model, editable etc. - by Graphviz ?

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
paullee
Posts: 3425
Joined: Wed May 04, 2016 3:58 pm

Re: Graph to show Part of Model, editable etc. - by Graphviz ?

Postby paullee » Sun Apr 11, 2021 6:23 pm

p.s.

BTW, agreed with @chrisb's comments, and 'shortest path' @lvk88 indicated at a glance.
paullee
Posts: 3425
Joined: Wed May 04, 2016 3:58 pm

Re: Graph to show Part of Model, editable etc. - by Graphviz ?

Postby paullee » Sun Apr 11, 2021 6:39 pm

A few quick random thoughts after reading the proposal :)
  1. Performance consideration - Currently TechDraw pages update when the model is revised but it slow down exponentially the model get complictaed. A switch to toggle Automatic Update (not checked exact name) was intriduced.
  2. Interaction - Currently some objects are just 'static representation' like TechDraw objects, Draft Shape2DView etc. What i mean is these objects can't be 'edited' so the changes reflected back in the model. It would be nice, if clicking these node in tne graph is at least equivalent to picking the object in Model Tree.
chrisb
Posts: 34448
Joined: Tue Mar 17, 2015 9:14 am

Re: Graph to show Part of Model, editable etc. - by Graphviz ?

Postby chrisb » Tue Apr 13, 2021 10:27 pm

Concering the implementation. The relationship between objects is available via PropertyLink: InList and OutList. Can the dependency graph be called from Python as well?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Pauvres_honteux
Posts: 454
Joined: Sun Feb 16, 2014 12:05 am
Location: Far side of the moon

Re: Graph to show Part of Model, editable etc. - by Graphviz ?

Postby Pauvres_honteux » Wed Apr 14, 2021 7:44 am

paullee
Posts: 3425
Joined: Wed May 04, 2016 3:58 pm

Re: Graph to show Part of Model, editable etc. - by Graphviz ?

Postby paullee » Wed Apr 14, 2021 1:24 pm

chrisb wrote: Tue Apr 13, 2021 10:27 pm Can the dependency graph be called from Python as well?
Good to be available for python :)
paullee
Posts: 3425
Joined: Wed May 04, 2016 3:58 pm

Re: Graph to show Part of Model, editable etc. - by Graphviz ?

Postby paullee » Wed Apr 14, 2021 1:27 pm

Pauvres_honteux wrote: Wed Apr 14, 2021 7:44 am I get the feeling this is almost the same whish?
Children and/or parent to be highlighted when hoovering over something in the tree/3D viewport
Highly related but not exactly the same thing :)

BTW, it ,ay be good if pressing + /- then selection go up / down 1 level ... maybe need L / R to control which branch to climb :D