Changes doesn't affect clone

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
brusk
Posts: 52
Joined: Wed Feb 18, 2015 4:33 pm

Changes doesn't affect clone

Post by brusk »

Hello forum!

I can't find out how to clone properly.

As a test I have created a sketch in Part Design and made a pocket feature.

I then cloned my pocket feature and moved it a bit so both are visible.

So far so good. Now I created a sketch with a circle and padded that on my original object. That change does not happen on the clone as I thought.

If I make changes to the original sketch from which I pocket'ed in the first place the change is reflected on the clone though.

How is it supposed to work? On the wiki page it just says " If the original object changes, the clone changes too, but keeps its position, rotation and scale"
Clone_puzzle_1.jpg
Clone_puzzle_1.jpg (86.11 KiB) Viewed 2084 times
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 32-bit
Version: 0.15.4537 (Git)
Branch: master
Hash: 79173e37cd0886e197129bf06bfbee01890480b3
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
Attachments
Clone_puzzle_1.FCStd
(32.2 KiB) Downloaded 39 times
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Changes doesn't affect clone

Post by NormandC »

Hello,
brusk wrote: That change does not happen on the clone as I thought.
It won't, because the clone is based on the Pocket feature. If you add other features you need to create a new clone based on the last Part Design feature in the tree.
User avatar
brusk
Posts: 52
Joined: Wed Feb 18, 2015 4:33 pm

Re: Changes doesn't affect clone

Post by brusk »

NormandC wrote:Hello,
brusk wrote: That change does not happen on the clone as I thought.
It won't, because the clone is based on the Pocket feature. If you add other features you need to create a new clone based on the last Part Design feature in the tree.
Thanks. I'll just have to delete and re-clone if I add to the original I guess.
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Changes doesn't affect clone

Post by DeepSOIC »

If there's something else depending on the clone, you may want to update the link in the existing clone. It can be done with OpenSCAD ReplaceObject tool from OpenSCAD workbench. The wiki page is empty, just read the tooltip in FreeCAD.
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Changes doesn't affect clone

Post by yorik »

brusk wrote:Thanks. I'll just have to delete and re-clone if I add to the original I guess.
Note that it is also possible to simply change the "Objects" property of the clone, to make it point to the new object, but at the moment this cannot be done from the GUI, only via python (change the code below to use the actual names of your objects):

Code: Select all

FreeCAD.ActiveDocument.Name_of_your_clone.Objects=[FreeCAD.ActiveDocument.Name_of_your_new_object]
User avatar
brusk
Posts: 52
Joined: Wed Feb 18, 2015 4:33 pm

Re: Changes doesn't affect clone

Post by brusk »

Thanks yorik and DeepSOIC!

That's some power tips. I'm really glad it's possible to use clones in a more parametric and non-destructive way :) .
SylviaElse
Posts: 5
Joined: Sat Apr 11, 2020 1:04 am

Re: Changes doesn't affect clone

Post by SylviaElse »

I thought I'd be caught by this, but it seems that issue has been resolved. I was caught by something else - the clones only show down to the current tip setting in the original.
User avatar
hhassey
Posts: 247
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Changes doesn't affect clone

Post by hhassey »

Just for completeness, I am prettey sure I read on the documentation somewhere that Linking objects is more efficient than cloning.

I just created a body and made a link to the body.

then I can add features to the body and the link get's updated instantly, no need to redefine it's source.

I think this is what you wanted
4.jpg
4.jpg (183.41 KiB) Viewed 1012 times
Post Reply