FreeCAD (2) - Your first part

Creating your first part in FreeCAD

Goal

The goal of this tutorial is to discover the basic features of FreeCAD by making the part above step by step. Not every feature used is explained exhaustively, so feel free to try some options for yourself.

Creating your project

STEP 1

When FreeCAD starts, on the Start page, click Create new to create a new design project. If you are not on the Start page, you can also create your project through File > New.

STEP 2

At this point, it is advisable to save your project before going on. Go to File > Save.

STEP 3

For this first part, we will mainly use the Part Design workbench. If you are not there already, switch to the Part Design workbench with the drop-down menu of your toolbar

A tour of the window

General view

The design window is divided into 4 areas:

  • Area 1: 3D/2D view of the part
  • Area 2: Tabs of the open projects
  • Area 3: Tree of features and parts
  • Area 4: Toolbar

1 - 3D/2D view

Area 1 is dedicated to the 3D and 2D view of your part. In 3D view, you can move around your part and select the elements to work on. You also have the navigation cube, which lets you manage your display and its orientation very quickly.

2 - Tabs of the parts and elements of the project

The various parts you create and open appear in the tabs below your window.

3 - Tree of features and parts

On the right is the display area for the tree of features and parts, as well as the properties of the selected element. The tree shows all the parts of a project, its features and the elements that make it up.

The lower section shows the View options of the selected element (relating to how the element is displayed), as well as the options available for the selected element. The Data tab is perhaps the most important tab in FreeCAD, because it is the one that lets you work most effectively with all the data of an element.

4 - Toolbar

At the top of your screen is the toolbar, which gives you access to the features for creating and managing your parts. It is different for each workbench and can be extensively customised to your needs (see Tools > Customize > Toolbars)

Example of toolbars per workbench:

  NOTE FOR WHAT FOLLOWS

Because FreeCAD is a development version and, what is more, extremely configurable, some visuals may differ from your version. If so, do not worry: the changes are mostly cosmetic and the tool is bound to be available somewhere else in your toolbar.

Creating your first part

STEP 0: create a body

FreeCAD projects are extremely free and flexible in the way they are designed. You can decide to make as many files as there are parts to assemble in your project, or use a single file to store your various parts, assemblies, drawings, plans and so on.

In our case, we focus on creating a single part, and therefore a single Body. To create a Body, you can click the Create body button in your toolbar, or go to Part Design > Create body.

A new body has now appeared in your tree on your right.

STEP 1: create a sketch

Go to the toolbar and click Create sketch . Select the XY_Plane plane as the sketch plane (click the plane in question). The plane you selected should appear in your sketch window:

Click OK to confirm .

STEP 2: Create a rectangle

Go to the toolbar and click Create rectangle

Draw a rectangle around the origin point as shown in the picture, clicking once to set the first corner, then a second time to set the second corner. Do not click and drag

STEP 3: Centre your rectangle

There are several ways to centre your rectangle on the origin of your part. Read both methods carefully and try them:

Method 1: by midpoint

Since the square is to be centred on the origin (a point), click two end corners of the square, then last the origin point.

Then click Symmetric constraint in the constraints toolbar .

Method 2: by symmetry

The square can also be centred using a double symmetry. Click two opposite corners of the square, then the line separating them:

Then click Symmetric . Repeat the operation for two other corners.

STEP 4: Make the sides of your rectangle equal

Select two adjacent sides of your square, then click the equal constraint

STEP 5: Dimension the sides of your square

Select one of the sides, and click vertical distance constraint or horizontal , depending on the side selected. Enter the dimension wanted, 30mm

  WARNING

Notice how your sketch has gone from white to green. This means your sketch is fully constrained. It is important to ALWAYS check that your sketches are fully constrained before leaving a sketch and carrying on with your work.

If you do not, you risk ending up in situations where the later generation of your part breaks when you edit an earlier sketch that is not fully constrained.

STEP 6: Confirm and leave the sketch

If you are happy with your sketch, you can leave it by clicking the Close button . You then leave sketch mode and return to the 3D view.

STEP 7: Make a pad

Select the sketch you created earlier , then click Pad in the toolbar. In the menu that appears, change the value to 10mm in the Length field.

Then OK to leave.

STEP 8: Create a second sketch

Click Create sketch , then double-click the XZ_Plane plane to set it as the sketch plane.

STEP 9: Quick outline of your shape

Draw a quick outline of the shape wanted (see illustration) using the line tool or the polyline tool . When you work on a sketch, the sketch solver automatically suggests Horizontal or Vertical geometric constraints. You can see them appear under your cursor when the conditions are met:

If some geometric constraints were not placed while sketching the shape, you can add them manually using the geometric constraints of the toolbar:

  INFO

When you make a complex sketch, a simple method that works in most cases is to:

  • Draw an unconstrained outline of your sketch
  • Constrain your part geometrically with the constraint tools
  • Finish by dimensioning the sketch
  • Check that your sketch is fully constrained This is the method you followed to make the base of your part, and it is also the method we will use for the second portion of the part.

STEP 10: Dimension the sketch

With the dimension tools , dimension the sketch created earlier as shown. For the angular dimension, use the Angle constraint tool

Check that your sketch is fully constrained, then Close to leave.

STEP 11: Revolution

Select the sketch you have just made, then click the Revolution tool .

Check that the axis of revolution is set to Z axis. If it is not, select it.

Finally, OK to confirm

STEP 12: Sketch of the hole

Create a sketch in the ZY plane (XY_Plane) and reproduce the sketch opposite using the Create circle tool . Constrain the elements as seen earlier, then Close to leave.

STEP 13: Removing material

Select the new sketch you have just made, then click Pocket . In the window that appears, if the material is removed in the wrong direction, you can reverse it with the Reversed button .

Then under Type, select Through all .

Finally, OK to confirm

STEP 14: Polar pattern

Select the last material removal feature made, Pocket , and click Polar pattern

In the window that opens, select Z axis in the Axis menu

In the Occurrences counter, enter the value 6

Finally, OK to confirm

STEP 15: Chamfers and fillets

Select at least one edge of your base, then click the Chamfer tool .

In the settings window that opens on the right, select all 4 side edges of the base.

Give your chamfers a distance of 3mm, then OK to confirm

You can do the same with the Fillet tool , selecting the bottom edge of the cylinder.

Modifying your part

CAD tools are, by nature, parametric. That is, they let you make changes to your parts by going back up your feature tree. You can thus correct or add elements to your part by going back up the tree, without having to start your whole design again.

For example, in our case, we will make several changes:

CHANGE 1: Size of the base

In this first change, we alter the size of the sketch, then the height of the base.

Double-click your first sketch (that of your base) in the tree of your part, on the right:

You go back to sketch editing mode for your base. Change the dimension of the side of your square to 40mm , then the Close button to confirm.

To change the height of your base, double-click the extrusion of your base in the feature tree (Pad ), and change the height to 5mm, then OK to confirm .

CHANGE 2: Size of the holes

Double-click the sketch of the hole to enter edit mode, and change the diameter of the circle to 4mm and its distance from the centre to 16mm, then the Close button to confirm.

CHANGE 3: Number of holes

Double-click the polar pattern feature, then change the occurrences counter to 4. Then OK to confirm .

Need help?