Inheriting sketch feature.

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
koirat
Posts: 66
Joined: Tue Oct 05, 2021 5:24 pm

Inheriting sketch feature.

Post by koirat »

My sweet wish, don't feel obligated to answer.

It would be cool to be able to link/inherit the whole sketch to other.
So when I add circle to one sketch It will be added to another automatically.
Inherited sketch could be be read only when it comes to geometry changes, but its edges could be changed to construction lines and back.
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Inheriting sketch feature.

Post by drmacro »

In Part Design, just clone the sketch.

In Part, use Draft clone to clone the sketch.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
koirat
Posts: 66
Joined: Tue Oct 05, 2021 5:24 pm

Re: Inheriting sketch feature.

Post by koirat »

But how can I draw on cloned sketch ?
User avatar
jonasb
Posts: 162
Joined: Tue Dec 22, 2020 7:57 pm

Re: Inheriting sketch feature.

Post by jonasb »

koirat
Posts: 66
Joined: Tue Oct 05, 2021 5:24 pm

Re: Inheriting sketch feature.

Post by koirat »

No carbon copy links only constraints and current geometry, if I add something new to the source sketch it will not appear in the copies.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Inheriting sketch feature.

Post by adrianinsaval »

do you have a compelling use case example? I don't see myself using this often (if at all).
koirat
Posts: 66
Joined: Tue Oct 05, 2021 5:24 pm

Re: Inheriting sketch feature.

Post by koirat »

This is my practical example from latest work.

I have got a spur gear system but it is multi layered, some gears are connected with a shafts, this is how the drive is carried between layers.
Those layers are made immovable by screws that are going through all those layers. (physically layer will be a plate made by laser-cut)
But some layers are smaller than the biggest one so I'm using it only as a reference by carbon copying and changing most of it by changing edges into construction lines and use this construction lines to build new layer. (so some edges are on top of master sketch edges)

Now the problem is that when I decide to add something to my master sketch I have to rebuild everything because it is just a carbon copy and not a clone.
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Inheriting sketch feature.

Post by drmacro »

I think you need to change your approach to the design.

The typical way to do this, I assume you have these plates in separate Body objects.

So, by making a ShapeBinder from the source sketch in the active Body, then create a sketch and use external geometry references to what ever is needed from the ShapeBinder.

This way changes will be propagated to other Body objects as desired.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
koirat
Posts: 66
Joined: Tue Oct 05, 2021 5:24 pm

Re: Inheriting sketch feature.

Post by koirat »

Shape binder on sketch is actually a good idea.
But as I can see creating a linked edge creates a kind of construction line that cannot be toggled to normal edge.
Is there a way to turn/copy/clone multiple (selected edges) into normal edges ?
Or I'm forced to draw my edges once again ?
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Inheriting sketch feature.

Post by drmacro »

koirat wrote: Sat Oct 16, 2021 11:31 am ...
Or I'm forced to draw my edges once again ?
yes.

If your sketch is so complicated that this is a tedious task, then your sketches need to be simplified and/or broken up, most likely.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply