FC v0.20.0 - duplicate selected object : TreeView elements seem redundant

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
DeeJayOne
Posts: 332
Joined: Thu Sep 05, 2019 9:18 am

FC v0.20.0 - duplicate selected object : TreeView elements seem redundant

Post by DeeJayOne »

Hi everyone :)

I'm asking if there is not an issue with the content of the TreeView of the "Object Selection" window after executed the "Edit -> Duplicate selected object" feature.

A simple example by just create a body, a sketch with a simple shape and a pad.
Then duplicate the body to open the "Object Selection" window.

FC_v0.20.0 - Duplicate_Body_All_elm_arbo_2a - (with borders & arrows).PNG
FC_v0.20.0 - Duplicate_Body_All_elm_arbo_2a - (with borders & arrows).PNG (77.81 KiB) Viewed 948 times

As you can see, there are lot of redundant elements in the TreeView : Why not just show only these elements to be more clear ?

FC_v0.20.0 - Duplicate_Body_All_elm_arbo_2a - Nice to have.PNG
FC_v0.20.0 - Duplicate_Body_All_elm_arbo_2a - Nice to have.PNG (62.23 KiB) Viewed 948 times

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: French/France (fr_FR)
Attachments
FC_v0.20.0_Duplicate_Body_save_01_OK_before_duplicate.FCStd
(9.85 KiB) Downloaded 33 times
L'important est de ne pas arrêter de poser des questions. La curiosité a sa propre raison d'exister
The important thing is not to stop questioning. Curiosity has its own reason for existing.
Albert Einstein
User avatar
DeeJayOne
Posts: 332
Joined: Thu Sep 05, 2019 9:18 am

FC v0.20.0 - Duplicate selected object : GeoFeatureGroup Exception

Post by DeeJayOne »

Hi Everyone ;)

For a while, I meet an issue by trying to duplicate a body with the "Edit -> Duplicate selected object" feature.

As an example, just create a body with a sketch and a pad.
Then, try to use the "Duplicate selected object".
It will show you an "Object selection" window.
Keep the default settings (All elements) and click OK.

a dialog box appears with the following message : Object can only be in a single GeoFeatureGroup

PS : Sometimes, this issue seems to appear randomly

Capture d’écran (4323).png
Capture d’écran (4323).png (231.59 KiB) Viewed 951 times

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: French/France (fr_FR)
L'important est de ne pas arrêter de poser des questions. La curiosité a sa propre raison d'exister
The important thing is not to stop questioning. Curiosity has its own reason for existing.
Albert Einstein
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: FC v0.20.0 - duplicate selected object : TreeView elements seem redundant

Post by chrisb »

When I duplicate the body, I get a message "Object can only be in a single GeoFeatureGroup", but then everything looks as expected:
SnipScreenshot-f51e39.png
SnipScreenshot-f51e39.png (36.76 KiB) Viewed 908 times
Only the attachment of the duplicated sketch references the plane from the first body.

Edit: some information given here may be redundant after the merge of the two topics.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: FC v0.20.0 - duplicate selected object : TreeView elements seem redundant

Post by chrisb »

I have merged your two topics. Please sort the contents and remove doublettes.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
DeeJayOne
Posts: 332
Joined: Thu Sep 05, 2019 9:18 am

Re: FC v0.20.0 - duplicate selected object : TreeView elements seem redundant

Post by DeeJayOne »

chrisb wrote: Sat Aug 13, 2022 11:27 pm I have merged your two topics. Please sort the contents and remove doublettes.
I thought it would be clear to separate each issue.
I'd rather keep initial post in their original state, otherwise, I will have to spend lot of time with a risk to make it incomprehensible.
L'important est de ne pas arrêter de poser des questions. La curiosité a sa propre raison d'exister
The important thing is not to stop questioning. Curiosity has its own reason for existing.
Albert Einstein
User avatar
DeeJayOne
Posts: 332
Joined: Thu Sep 05, 2019 9:18 am

Re: FC v0.20.0 - duplicate selected object : TreeView elements seem redundant

Post by DeeJayOne »

chrisb wrote: Sat Aug 13, 2022 11:20 pm Only the attachment of the duplicated sketch references the plane from the first body.
Yes, behaviour depend of selected elements :



Body (+Sketch and Pad at root level)
Combo Body - with arrow.png
Combo Body - with arrow.png (76.22 KiB) Viewed 813 times


Body (+Sketch and Pad at root level) + Sketch Plane link
Combo Body + Sketch Plane link - with arrow.png
Combo Body + Sketch Plane link - with arrow.png (72.26 KiB) Viewed 813 times


All elements (default selection)
Combo All Elm - with border.png
Combo All Elm - with border.png (259.47 KiB) Viewed 813 times
L'important est de ne pas arrêter de poser des questions. La curiosité a sa propre raison d'exister
The important thing is not to stop questioning. Curiosity has its own reason for existing.
Albert Einstein
Post Reply