[Solved] Body clone position properties dissapear after save

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
User avatar
babaroga
Posts: 77
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

[Solved] Body clone position properties dissapear after save

Postby babaroga » Thu Nov 30, 2017 2:24 pm

Hello,

Here is one issue I found with clone command in PD workbench.
If I save document with body clone, after reloading clone looses positioning properties.

How to reproduce:
1. Make new document
2. Create New Body
3. Create New sketch
4. Pad sketch
5. Clone body
6. Go to properties and change position of clone
Screenshot_20171130_150910.png
Screenshot_20171130_150910.png (161.48 KiB) Viewed 1529 times
7. Save document and close it
8. Reload same document
Screenshot_20171130_151906.png
Screenshot_20171130_151906.png (142.14 KiB) Viewed 1529 times
9. Placement section in properties is missing.

If I make new clone of Body, Placement section is visible right after cloning, but disappears after document save and reload.

Code: Select all

OS: Ubuntu 17.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12697 (Git)
Build type: Unknown
Branch: master
Hash: 8bbcfd6dce297917f39452392dc9e5722f95d7cb
Python version: 2.7.14
Qt version: 5.9.1
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)


And also

Code: Select all

OS: Ubuntu 17.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12634 (Git)
Build type: Unknown
Branch: master
Hash: 9b4f57e5779a27e29d39277d4af01688da43c32d
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: Bosnian/BosniaAndHerzegowina (bs_BA)
Last edited by babaroga on Thu Dec 21, 2017 7:11 am, edited 1 time in total.
ffvpor
Posts: 13
Joined: Wed Sep 07, 2016 5:03 pm
Location: Blagnac, France

Re: Body clone position properties dissapear after save

Postby ffvpor » Thu Nov 30, 2017 5:58 pm

The same with

Code: Select all

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12700 (Git)
Build type: Release
Branch: (HEAD detached at 75829b3)
Hash: 75829b36790a4a0595db795cf15c8432d2c99520
Python version: 2.7.14
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: French/France (fr_FR)
However with this code in the python console, it's move!

Code: Select all

FreeCAD.getDocument("clone_body").getObject("Clone").Placement = App.Placement(App.Vector(80,20,80),App.Rotation(App.Vector(0,0,1),0))
chrisb
Posts: 18185
Joined: Tue Mar 17, 2015 9:14 am

Re: Body clone position properties dissapear after save

Postby chrisb » Thu Nov 30, 2017 6:57 pm

If you want to clone the whole body you should use Draft->Clone function.
User avatar
babaroga
Posts: 77
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: Body clone position properties dissapear after save

Postby babaroga » Fri Dec 01, 2017 6:57 am

OK, Draft -> Clone works very nice.
But, then, what is PDN -> Clone for?

It behaves same if I clone feature from the body and body itself. I cannot move them after document is saved and reopened.

I just saw, If I clone the body, reopen document and try to edit some eg. sketch, FreeCAD is complaining about broken object and ask for Migration which fails with "Failed to create object Body"... :shock: So FC is complaining only during first edit after document opening, but after that, everything works as normal.
chrisb
Posts: 18185
Joined: Tue Mar 17, 2015 9:14 am

Re: Body clone position properties dissapear after save

Postby chrisb » Fri Dec 01, 2017 8:49 am

freecad-heini-1 wrote: ping
Wilfried, you have some experience with the body-clone, and if I remember correctly it was introduced due to some issue with a model of yours. Can you enlighten us, please?
User avatar
DeepSOIC
Posts: 6969
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Body clone position properties dissapear after save

Postby DeepSOIC » Fri Dec 01, 2017 9:03 am

babaroga wrote:
Fri Dec 01, 2017 6:57 am
But, then, what is PDN -> Clone for?
Quite a hard question. I asked it already, and got a small reply. Apparently, it assists in use of PD Booleans. https://forum.freecadweb.org/viewtopic.php?f=3&t=25265
freecad-heini-1
Posts: 5771
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: Body clone position properties dissapear after save

Postby freecad-heini-1 » Fri Dec 01, 2017 9:32 am

chrisb wrote:
Fri Dec 01, 2017 8:49 am
freecad-heini-1 wrote: ping
Wilfried, you have some experience with the body-clone, and if I remember correctly it was introduced due to some issue with a model of yours. Can you enlighten us, please?
Please have a look at this thread:
https://forum.freecadweb.org/viewtopic. ... 53#p197753

From my point of view PDN actually is not really useable for me because of it's limitations. Placements from moved and rotated body's switches back to it's origin position with clone or shapebinder if move into other body's.

My favoured workflow is to create all new design tasks with the part-workbench.
Next disadvantage from PDN is, that a mix between features from different workbenches is impossible actually.
In my daily job as cad designer, I have so many cases in which a mix of solids and surfaces is needed. But PDN has no surface features, just solids. I see many users here in the forum, they create user defined icons in their part-workbench, and prefer a workflow similar to mine.

It's a pitty that these great datum-features are not useable in the part-wb, as well as pad, pocket, grove, new holes, draft-angle, and addive / subtractive features.

Sorry, but my opinion is that PDN feels like a trip into a blind alley.
Last edited by freecad-heini-1 on Fri Dec 01, 2017 9:53 am, edited 2 times in total.
User avatar
DeepSOIC
Posts: 6969
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Body clone position properties dissapear after save

Postby DeepSOIC » Fri Dec 01, 2017 9:52 am

freecad-heini-1 wrote:
Fri Dec 01, 2017 9:32 am
Sorry, but my opinion is that PDN feels like a trip into a blind alley.
You are not alone here :mrgreen:

But I have a few interesting ideas, which are possible only in partdesign workflow.

BTW. Lattice's Attached Placement can serve as a crude replacement of datum planes of PDN. Doesn't look as nice, but has the same functionality in the end.
User avatar
babaroga
Posts: 77
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: Body clone position properties dissapear after save

Postby babaroga » Fri Dec 01, 2017 11:28 am

OK, it depends on what you prefer. Personaly, I like PDN and do most of stuff with it. Anyway, it will be nice feature to have its clone command clarified. In mean time, I will use DRAFT => CLONE.
User avatar
babaroga
Posts: 77
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: [Solved] Body clone position properties dissapear after save

Postby babaroga » Thu Dec 21, 2017 7:12 am