Hi!
Just an indication of a new sketcher tool called carbon copy just recently merged.
The aim of this tool is to allow a smart copy of sketch geometry from one sketch to another. The smart part is related to the fact that dimensional constraints are linked (via the expressions engine), so that any change in the value of a constraint in the original sketch propagates to all the carbon copies.
So, better to understand with an example. We start with this sketch:
We pad it and select the top face to make another sketch there (I have hidden the pad and shown the original sketch in the background):
The carbon copy tool is sensitive to the construction mode. So now I toggle to construction geometry mode and select the carbon copy tool (ugly icon between the add external geometry and the toggle construction geometry). And with it I am going to click on the geometry of the original sketch shown in the background:
The original sketch with all its constraints and dimensions automatically appears. This time as construction lines, because I selected construction mode on.
Now I toggle to normal mode and I am going to make a couple of holes coincident with the slot circle diameters. I use the carbon copied geometry just as a reference:
And I pocket through all.
Now I am going to make a new sketch on the top face of the pad and I am going to carbon copy the previous sketch I used for pocketing:
[new feature] sketcher carbon copy
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: [new feature] sketcher carbon copy
Now we are going to make a new sketch mapped to translate and we are going to move it somewhere up in Z and rotate it.
In order to allow the sketch, that is not parallel and aligned to be imported, you need to press ALT (you are advised to do so in the status bar).
Now you loft the last two sketches:
Re: [new feature] sketcher carbon copy
I exit edit mode and:
The end
Caveats:
1. All the glue between sketches is the constraints and expression engine. It is advised to fully constraint your sketches, or part of the sketch may repositioned properly and the rest not.
2. There are two modifiers CTRL to allow to link sketches outside of the PD Body and ALT to remove the direction/parallel plane checks. There is bug I just discovered, if in trouble use ALT+CTRL.
Happy CC-ing!!
Re: [new feature] sketcher carbon copy
Short review available here:
https://forum.freecadweb.org/viewtopic. ... 20#p169484
Although in the past i rather did such things manually i do see myself using Carbon Copy in some use cases to speed things up. Especially when the result of doing it manually would equal the one produced by Carbon Copy.
https://forum.freecadweb.org/viewtopic. ... 20#p169484
Although in the past i rather did such things manually i do see myself using Carbon Copy in some use cases to speed things up. Especially when the result of doing it manually would equal the one produced by Carbon Copy.
Re: [new feature] sketcher carbon copy
"fight the good fight"
Re: [new feature] sketcher carbon copy
Thanks!!
I will take a look to that issue
Re: [new feature] sketcher carbon copy
Hi, this is a terrific feature! I thought there maybe some problem recently in carbon copy and I have make a post below ....after testing and re-reading this post, I understand only dimensional constraints are 'carbon copied' (see other remark on list 2 below).abdullah wrote: ↑Mon Apr 10, 2017 4:25 pm Hi!
Just an indication of a new sketcher tool called carbon copy just recently merged.
The aim of this tool is to allow a smart copy of sketch geometry from one sketch to another. The smart part is related to the fact that dimensional constraints are linked (via the expressions engine), so that any change in the value of a constraint in the original sketch propagates to all the carbon copies.
Now I am going to make a new sketch on the top face of the pad and I am going to carbon copy the previous sketch I used for pocketing:
https://forum.freecadweb.org/viewtopic. ... 10#p191610
Now there is a few issues in my mind-
- the strange part remains is there is a 'Circular Dependency' error message in the status bar in my test which i still do not understand
- is this 'carbon copy' feature able to be extend to copy all constraints? Currently, more precisely, it is the 'dimension' part of a 'dimensional constraints is referenced.
- Survive Topological Naming Problem?
- my 'manual method works something like this, e.g. in original sketch, i put a Optional Name to e.g. 1 point Horizontal Constraints and Vertical Constraints. This is referenced in another sketch so the original constraints change, the referenced constraints get updated (i think not the other way around)
- As i 'hard-coded' the exact point I want to reference, even I add or remove lines in original sketch ( and the edges number in FC or OCC i don't know) and it recalculate, it would (seems should) survive. But I am not too sure.
- I understand the 'link to external geometry' would have problem when the original geometry have added or remove lines etc.
- I see in 'Carbon Copy' ....constraints is .....Sketch.Constraints[xx]... Is it a numbers and if there is constraints added or removed, would the numbers referenced be frustrated?
Thanks for any hints to understand how this works in more details!
Re: [new feature] sketcher carbon copy
I do not have much time ATM but I somehow looked into it.paullee wrote: ↑Sat Sep 16, 2017 1:08 am Hi, this is a terrific feature! I thought there maybe some problem recently in carbon copy and I have make a post below ....after testing and re-reading this post, I understand only dimensional constraints are 'carbon copied' (see other remark on list 2 below).
I see that most has been clarified in your linked post. See also my reply for the remaining bit:
https://forum.freecadweb.org/viewtopic. ... 26#p191826