Map a sketch to a face reorients the sketch

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
CADer
Posts: 13
Joined: Wed Oct 23, 2019 9:40 am

Map a sketch to a face reorients the sketch

Post by CADer »

So I have a sketch in XY plane and want to map it to a face 3mm above it (also in XY plane). However, when mapped using the suggested Flat Face mode, the sketch gets reoriented. Same for InertialCS.
Does it means that one can only edit a sketch after it has been mapped to a face? Or is it abug?


By the way - mapping a sketch which has already been used for padding not only reorients but also distorts it.

P.S. You can find the project file in the A part has incorporated geometry from another part post a few threads below.
Attachments
Map a sketch to a face reorients the sketch 1 - sketch before mapping.JPG
Map a sketch to a face reorients the sketch 1 - sketch before mapping.JPG (52.66 KiB) Viewed 1091 times
Map a sketch to a face reorients the sketch 1 - sketch mapping.JPG
Map a sketch to a face reorients the sketch 1 - sketch mapping.JPG (56.54 KiB) Viewed 1091 times
Map a sketch to a face reorients the sketch 1 - sketch mapping result (Flat Face).JPG
Map a sketch to a face reorients the sketch 1 - sketch mapping result (Flat Face).JPG (45.66 KiB) Viewed 1091 times
Map a sketch to a face reorients the sketch 1 - sketch mapping result (InertialCS).JPG
Map a sketch to a face reorients the sketch 1 - sketch mapping result (InertialCS).JPG (51.61 KiB) Viewed 1091 times
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Map a sketch to a face reorients the sketch

Post by bejant »

CADer wrote: Wed Oct 23, 2019 1:02 pm So I have a sketch in XY plane and want to map it to a face 3mm above it (also in XY plane). However, when mapped using the suggested Flat Face mode, the sketch gets reoriented.
Think of a Sketch that is Mapped onto the top side of a cube. To look straight on at the top of the cube, you'd look down onto the top of thecCube. To Edit the Sketch it's the same way, we look straight on (normal to) the Plane of the Sketch. So if the Sketch is Mapped onto the top face of the Cube, when editing the Sketch we'd be looking down at the top face of the cube.

Conversely, if a Sketch is Mapped onto the bottom face of the Cube, when editing the Sketch we'd be looking up from below at the bottom of the Cube.

Re-mapping a Sketch from the top face to the bottom face of a Cube also causes the Sketch to turn accordingly.

Instead of Re-mapping your Sketch from the top face of the flange to the bottom face of the flange, causing it to turn, you can change the Attachment Offset property to move the Sketch downwards the thickness of the flange. The Sketch still isn't attached to the bottom flange; it is only positioned co-planar to the lower face of the flange.

CADer wrote: Wed Oct 23, 2019 1:02 pm Does it means that one can only edit a sketch after it has been mapped to a face?
No, a Sketch can be edited even if it is not attached to anything and is floating in space.

CADer wrote: Wed Oct 23, 2019 1:02 pm By the way - mapping a sketch which has already been used for padding not only reorients but also distorts it.
That's a result of the well known topological naming issue.

(Edited typo)
Last edited by bejant on Thu Oct 24, 2019 2:23 pm, edited 1 time in total.
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: Map a sketch to a face reorients the sketch

Post by chrisb »

The sketch is distorted if you use external references which don't follow the new mapping.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
CADer
Posts: 13
Joined: Wed Oct 23, 2019 9:40 am

Re: Map a sketch to a face reorients the sketch

Post by CADer »

@bejant, thank you, indeed it makes sense. However it would be great if it was possible to attach a sketch to a face without "translating it". Attaching to a face has one advantage as compared to the Attachment Offset property: the attached sketch will move with the face, so one woudn't need to manually readjust the offset when modifying some dimensions in the project.
User avatar
pl7i92LCNC
Posts: 208
Joined: Tue Mar 12, 2019 3:03 pm
Location: RLP DE

Re: Map a sketch to a face reorients the sketch

Post by pl7i92LCNC »

as you go for assemply
isent it in the fianl to be one part
maybe im wrong but you can do this all from the start in one body
and not try to bool them together
Post Reply