14. Nested Sketch Extrusion

In this practice we are going to create sketches to extrude them, placing some sketches on top of others and thus form more complex figures.


  1. Open the FreeCAD application and click on the icon to create a new document icono-nuevo-documento.

    We select the Part Design workbench

    _images/freecad-workbench-part-design.png

    Next we select to create a new sketch.

    _images/freecad-crear-nuevo-croquis.png

    And we choose the XY plane as the base plane to place the new sketch.

    _images/freecad-croquis-xy.png

    A grid will appear on the screen where you can draw in two dimensions.

    _images/freecad-croquis-rejilla.png


  2. Next we are going to draw a simple object, an octagon.

    First we adjust the editing controls in the Tasks tab, so that the drawing will fit on the grid.

    _images/freecad-croquis-control-edicion.png

    Now we will create an octagon with the icon polyline polilinea.

    _images/freecad-p14-imagen01.png

    If we make a mistake when placing the points, once the drawing is finished we can click on the points and drag them with the mouse to their correct position.

    Once we are done, click on the Tasks tab and click on the Close button. Our drawing will look in plan view as in the following figure.

    _images/freecad-p14-imagen02.png

    If you can't see the drawing, Click on the 'Fit full content to screen' icon icono-ajustar-contenido.


  3. To get a piece in three dimensions we are going to extrude our sketch by selecting the corresponding icon.

    _images/freecad-croquis-extruir.png

    Or selecting in the Menu Part Design... Extrude

    In the extrusion parameters we choose the dimension or height that we want for the piece, in this case 50 millimeters.

    If we switch to perspective view, we will be able to see our octagon in three dimensions.

    _images/freecad-p14-imagen03.png


  4. Now we are going to select the upper area of ​​the octagon by clicking on it. The area will turn green.

    _images/freecad-p14-imagen04.png

    Once the upper face is selected, we click again on the icon to create sketches.

    _images/freecad-crear-nuevo-croquis.png

    This time the sketch will be drawn on the selected face, not on the ground.

    We re-adjust the editing controls to fit the grid.

    _images/freecad-croquis-control-edicion.png

    And we draw another smaller octagon on top of the first octagon.

    _images/freecad-p14-imagen05.png

    Once we are done, click on the Tasks tab and click on the Close button. Our drawing will look like the following figure.

    _images/freecad-p14-imagen06.png


  5. Next we extrude the new sketch to form a new figure on top of the first one. Click on the corresponding icon.

    _images/freecad-croquis-extruir.png

    Or we select in the Menu Part Design... Extrude

    In the extrusion parameters we choose the dimension or height that we want for the piece, in this case 50 millimeters.

    The piece will look like the following image.

    _images/freecad-p14-imagen07.png


  6. Now we are going to generate a shell in the created part. We start by selecting the top face of our object in three dimensions.

    Once the top face is selected, we create a new sketch.

    _images/freecad-crear-nuevo-croquis.png

    We re-adjust the editing controls to fit the grid.

    _images/freecad-croquis-control-edicion.png

    And we draw a square in the center of the piece.

    _images/freecad-p14-imagen08.png

    Once we are done, click on the Tasks tab and click on the Close button. Our drawing will look like the following figure.

    _images/freecad-p14-imagen09.png


  7. Next we generate a hole from the sketch drawn by clicking on the hollow icon.

    _images/freecad-croquis-vaciado.png

    Or by selecting in the Menu Part Design... Shell

    Once pressed, we change the shell parameters so that the hole goes through all objects.

    _images/freecad-p14-imagen10.png

    By clicking the OK button, the part will be pierced as can be seen in the following figure.

    _images/freecad-p14-imagen11.png


  8. So far we have always created sketches vertically, from the bottom up, but the sketches can be placed on any surface as can be seen in the following figure.

    _images/freecad-p14-imagen12.png



Exercises

  1. Create a 3-dimensional mask like the one in the figure.

    _images/freecad-p14-ejercicio01.png


  2. Create a house like the one in the figure.

    _images/freecad-p14-ejercicio02.png

    The first sketch with the body of the house will be placed in the XZ plane and extruded in the Y plane.

    The following sketches will serve to make holes in the main body.

    _images/freecad-p14-ejercicio02b.png

    To give colors to the house we will follow this procedure.

    1. We select the complete house in the Model tab.
    2. With the right mouse button on the model, we select adjust colors.
    _images/freecad-p14-ejercicio02c.png
    1. We select with the mouse the face of the object that we want to change color.
    2. We select the color in the Tasks dialog box.
    _images/freecad-p14-ejercicio02d.png
    1. Click on OK.


  3. Create a ball maze game like the one in the figure.

    _images/freecad-p14-ejercicio03.png

    From the following sketches.

    _images/freecad-p14-ejercicio03b.png

    Add a sphere with the Part workbench and translate the sphere as you can see in the first figure.

    Finally, change the color of the faces of the object and the sphere.



Video-tutorial

Video: Extrusions and shells of sketches.