In sketch based modelling, sketches are attached, or placed on the face to which they will ad or subtract the feature the sketch is modeling.
![](https://i1.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999095.png?fit=900%2C247&ssl=1)
Mapping a sketch to a face gives us the ability to give an “un-attached” sketch a mapping to orient the Sketch, or to Re-Map a sketch that is connected to the wrong Face.
One of the more common uses of re-mapping a sketch is when a sketch loses it’s underlying element. This happens when design history is changed. The internal named of FreeCAD loses track of the name assigned to the sketch.
To Map a Sketch to a Face begin by selecting the Face. The sketch I will be using is currently “Mapped” to the XY_Plane. So the Sketch Origin is at the Body XY_Origin.
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999096.png?resize=658%2C534&ssl=1)
Sketch Origin and Circle Center
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999097.png?resize=658%2C534&ssl=1)
Sketch in Relation to Cube
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999098.png?resize=658%2C534&ssl=1)
Sketch Origin and Body Origin Overlapping
Select the Top Face of the Cube.
Click the Map Sketch to Face Icon
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999100.png?resize=153%2C158&ssl=1)
Select the sketch you wish to map from the list and Click OK.
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Select-sketch_999.png?resize=200%2C133&ssl=1)
You will be presented with the various attachment methods. The dialog will list all available attachment methods for your selection. If the only options is Don’t Attach, it means your selection is invalid.
For our exaample, use the pre-selected, “FlatFace” and Click OK.
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Sketch-attachment_999.png?resize=352%2C133&ssl=1)
The Sketch will be re-position so that the Origin of the Sketch is on the lowest numbered Vertex of the Plane. Notice when we show the Circle it is not the circle origin that is placed it is the Sketch origin.
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999101.png?resize=601%2C479&ssl=1)
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999102.png?resize=601%2C479&ssl=1)
Optional Exercise
This portion is overly technical, you may want to wait to complete this portion of the exercise until you understand Attachments and Placements more.
Now let’s move the Box and see the sketch move with it. We will need to Attach the BOx first so that it can have its own position inside the body.
Select the Box, and click the Ellipsis
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999103-1.png?resize=381%2C290&ssl=1)
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999105-1.png?resize=541%2C291&ssl=1)
In the Attachment mode select XY on plane, and in the Attachment select XY_Plane ( you will have to have the Body XY Plane Showing, and select it from the view). and Click OK.
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999106.png?resize=506%2C452&ssl=1)
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999107.png?resize=506%2C452&ssl=1)
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999108.png?resize=851%2C618&ssl=1)
Next add support, Click the ellipsis in the Support entry, Click on XY_Plane
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999110.png?resize=533%2C287&ssl=1)
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Link_999.png?resize=436%2C466&ssl=1)
Now your Box has it’s own placement and can be re-positioned within the Body. ( Normally this is not the recommended approach. ) Although, the transform tool is not available you will need to use the properties.
Change the X and Y Position in the attachment and you can see that the sketch moves with the Box, while the Body Origin remains the same.
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999111.png?resize=531%2C373&ssl=1)
![](https://i0.wp.com/www.freecad.info/wp-content/uploads/2020/07/Selection_999112.png?resize=743%2C516&ssl=1)