Hello,
I have lots of parts in the treeview of my project in part design workbench. Many times they just open itself. However, it is very annoying that I have to collapse those opened parts one-by-one in tree view. Is there any feature that I can collapse all off the parts in tree view with one click?
Collapse all parts in part desing tree view at once
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Collapse all parts in part desing tree view at once
If things expand automatically, then probably because there is an error inside which must be fixed!
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Collapse all parts in part desing tree view at once
Thank you. But it would be a nice feature to have one click expand all and close all function.
Re: Collapse all parts in part desing tree view at once
It happened to me today as well...
First time and I don't know what I did (I was re-naming something at the time...)
so I guess it could have been some accidental keyboard command?
So you not the only one it happens to
First time and I don't know what I did (I was re-naming something at the time...)
so I guess it could have been some accidental keyboard command?
So you not the only one it happens to
Re: Collapse all parts in part desing tree view at once
Thank you, but... isn't there a way of doing it without installing yet another macro? please?Syres wrote: ↑Wed Oct 20, 2021 2:37 pm ..something like https://wiki.freecadweb.org/Macro_ExpandTreeItem ??
Re: Collapse all parts in part desing tree view at once
Here a PR where I implemented my understanding of what you want : https://github.com/FreeCAD/FreeCAD/pull/5218
Precisely, it implements a collapse/expand system based on key presses using Alt modifier + arrow keys
* Alt+Left : collapse selected items (all other items keep their state)
* Alt+Right : expand selected items (all other items keep their state)
* Alt+Up : expand selected items with all tier-1 children collapsed (not go recursively to deeper child levels)
* Alt+Down : expand selected items with all tier-1 children expanded (not go recursively to deeper child levels)
Re: Collapse all parts in part desing tree view at once
Sounds good to me
Thank you!