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.
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
Bug: duplicating active body creates serious mess
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Bug: duplicating active body creates serious mess
Could this be related to the issues (viewtopic.php?f=3&t=15636&p=124513#p124513) I have encountered?
Best regards
SF
Best regards
SF
- 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
I think they are related to a certain extent, although they probably need independent fixes.Sawfish wrote:Could this be related to the issues (viewtopic.php?f=3&t=15636&p=124513#p124513) I have encountered?
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.
Re: Bug: duplicating active body creates serious mess
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
Best regards
SF
Re: Bug: duplicating active body creates serious mess
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)