Bug: duplicating active body creates serious mess

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Bug: duplicating active body creates serious mess

Post by DeepSOIC »

Hi!
While experimenting on how Part-o-magic withstands object duplication, I found a bug in PartDesign.
1. New Part, New body
2. New sketch. Draw rectangle. Close.
3. Pad the sketch.
4. Select Body and menu Edit->Duplicate... When asked whether to duplicate dependencies, click Yes.
The body is duplicated.
But.
Problem #1. Body is not added to active Part. OK, that can be fixed manually...
Problem #2. and all looks fine, until one dives into dependency graph. There, a total mess can be seen.
body-dupliction-mess.png
body-dupliction-mess.png (98.7 KiB) Viewed 2009 times
Graph problem #1: Duplicates of Sketch and Pad were added to original body, as well as to the copy of body.
Graph problem #2: Pad001 references Pad (that is, gets fused to it).


If I deactivate Body before duplicating, it does not mess up the graph.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.7668 (Git)
Build type: Release
Branch: BodyBase3
Hash: ef872d37a8a365aeb04567d80616b28a826ed41c
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Sawfish
Posts: 62
Joined: Fri Aug 22, 2014 10:50 am
Location: Denmark

Re: Bug: duplicating active body creates serious mess

Post by Sawfish »

Could this be related to the issues (viewtopic.php?f=3&t=15636&p=124513#p124513) I have encountered?

Best regards
SF
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Bug: duplicating active body creates serious mess

Post by DeepSOIC »

Sawfish wrote:Could this be related to the issues (viewtopic.php?f=3&t=15636&p=124513#p124513) I have encountered?
I think they are related to a certain extent, although they probably need independent fixes.

I can see your problem. You are trying to pad a sketch that is outside of active body (be it in another body, or maybe even a stand-alone sketch).

Keeping track of parts and bodies in PartDesign Next takes a lot of effort. I have created Part-o-magic to assist, and I hope similar functionality will be coded into FreeCAD a some point. As of now, it cannot be started, because first, container management API needs to be created, which ickby is busy on.

So, I'm not sure this bug, as well as your bug, need to be fixed right now.
Sawfish
Posts: 62
Joined: Fri Aug 22, 2014 10:50 am
Location: Denmark

Re: Bug: duplicating active body creates serious mess

Post by Sawfish »

There wasn’t any reply to the thread, and I have not seen similar issues describes by others, so I did not report the issue on tracker. I wanted to be sure others experience similar issues, and see them as a problem.

Best regards
SF
vectro
Posts: 32
Joined: Fri Jun 30, 2017 1:55 am

Re: Bug: duplicating active body creates serious mess

Post by vectro »

I observe this issue in the latest daily build.

Code: Select all

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11740 (Git)/Daily-PPA
Build type: None
Branch: master
Hash: 6b05302c2e70f191a2a5787f55c5b549155b9824
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
Post Reply