Don't search it, make it!

· 7 min read

If you own a 3D printer you probably know the struggle. You are looking for a specific part to fix or mount something, but just cannot find one that fits. The first one is too big, the second one is missing a hole, the third one fails to print.

I’ve had that happen one too many times and decided to learn a new skill: Parametric 3D modeling

I’ve created this article to summarize the basic concepts of parametric 3D modeling, based on what I have learned by trial and error. This is not a definitive guide and may even contain bad practices that I have yet to figure out.

As always: It’s learning by doing and fixing what’s broken!

Why FreeCAD?

Finding the right tool proved more challenging than expected. While many options offer affordable or free parametric 3D modeling, few meet my specific requirements:

  • Offline Operation
  • Free or one-time purchase licensing
  • No propriatary cloud uploads
  • Ability to export to 3MF or STL without restrictions

After a lot of research I finally settled on FreeCAD, even though some sources indicated that it had a steep learning curve.

FreeCAD Website: https://www.freecad.org/

Tutorial: Basic Hook

Starting FreeCAD for the first time can be overwhelming. There are lots of workbenches, each with a ton of features, options and settings. To keep it simple: You don’t need most of them to start modeling. Most of your time will be spent in the Parts Design workbench. For this demonstration we will model a basic hook with a screw hole.

Initial sketch

The creation of 3D models in FreeCAD starts with a 2D sketch that will be extruded or otherwise manipulated later. To create a sketch, use the New sketch option in the Parts Design workbench. FreeCAD will then ask which base plane the sketch should be attached to. This determines the orientation of your 3D model. Select the XY-Plane. This ensures that the final model lays on it’s side for easy printing.

dae62b72da4200b24344c650e1eb4663.png fdd5c3328f6362907442d3f92a201d68.png

FreeCAD will automatically switch to the Sketcher workbench and present new features. We will use these to create a sketch. Use the Polyline tool to create the basic shape of the hook, viewed from it’s side, starting from the root point. Make sure that the shape starts and ends at the same position.

392c50ef2433c0cc63c115fcd71bdeb9.png 1d9c629c2229b1246d4a6e9e8aa4d8f1.png

There is a very important concept in parametric 3D modeling that you need to understand: Every feature in a sketch needs to be fully constrained, meaning that if your computer calculates the 3D model there is no ambiguity regarding the position, size, or orientation of any geometry, leaving zero degrees of freedom.

This means that every point, every line and every angle needs to either have a fixed position or be constrained by neighbouring values. Currently, our sketch is under-contrained as incidated by FreeCAD. The amount of degrees of freedom shows how many options there are to move the sketch.

c5d89628ac661b2d1a2035c8d2b5216a.png

Let’s start constraining by first selecting the line that directly on the Y-axis and then selecting the Dimension Constraint or pressing (D) on the keyboard. This will create a constraint for the length of the line. Confirm with left-click and enter the size you want to set.

69ee292564eab5bceeb12b6eb1eac108.png a70a066ce09329813d4195bf2e2f74ec.png

Now do the same for the other lines. You can use the dimensions from the screenshot below, or use your own. A light green line indicates a fully constrained part of the sketch, a white line is under-constrained.

For the angled part of your sketch there are multiple ways to use constraints. You can either continue to set lengths, which in turn creates a fixed angle for the part, or you can use an Angle constraint. To use an angle constraint select the two lines that will create the angle and then use the Angle Dimension constraint.

2a3a1a9c4e00f50c7a275570a27d6e80.png 2caec041718849db36eefb30e47fa4ca.png

TIP: You can also use the Dimension constraint or press (D). FreeCAD will select the best possible constraint for you._ Creating constraints can get messy. It takes some time to know which constraints work best for your sketch. The sketch from this tutorial only uses basic constraints to simplify the concept. It is possible to create a less messy sketch with more advanced constrains.

Once your sketch is fully constrained it turns bright green. You can then exit the Sketcher workbench with the Close button and return to the Parts Design workbench.

24fe0094ea6e1e284f32bf686b877a57.png

Padding the sketch

Back in the Parts Design workbench you should see your 2D sketch in the left menu. To create a 3D object from it, select the sketch and then the Pad option. You can set the length of the extrusion in the Pad parameters and confim your choice. This will create a 3D representation of the sketch.

ebbd3aa2dcae9283075708d709c01465.png 4fa85d3d44755327afb432edb198b648.png

Creating a hole

Our 3D object already has the basic shape of a hook but it still lacks a way to mount it. Select the highlighted face on your object and create a new sketch. The new sketch is now attached to the selected face, meaning that it is the plane we are working on.

512fff0c04c689f19cdb45f4cc79ba24.png

Next we need some references to position the sketch for the hole we are about to create. We can achive this by using External Projection. This feature allows us to reference geometry that is not part of our sketch and can be used to position features in releation to the object.

Use the External Projection feature to select the lines at the top and the right side. In the Elements menu on the right select both lines, right-click them and select Toogle construction geometry. This ensures that the referenced lines will not be considered part of the new sketch and only function as references. The reference lines will turn into dotted lines.

52796fe22d5956e8ece9181daf026789.png e2e5d87661dbdb4c11a3956c88f27b1b.png

Now we can create a mounting hole using the Circle from Center feature and constrain the position of the middle point in releation to the reference lines, using the Dimension constraint. Once the hole sketch turns green, return to the Parts Design workbench.

d6246f4dcc0aea4d899986cd7528490a.png 4cdefed8706afe4cfb9f75ffedc9644a.png 3e5c735481f6228c4fd2cbafdadbd294.png

With the sketch selected in the menu on the left, use the Pocket feature to create a hole.

ae84e6496dd0bb9b671a241db258b202.png 6cca737117fe2f631e6839349211425c.png 97464f92829681906ab38a88fef3d65b.png

NOTE: You can also use the Hole feature. Keep in mind that it ignores the hole diameter you set in the sketch and instead has it’s own set of parameters that you need to configure. The Hole feature works great if you want to use specific screw types or need a modeled thread.

8caffd3b019e6ffac097cd26696747e5.png

Regardless of the feature you applied, you should now have a fully modeled hook with a mounting hole.

Make it look professional

The hook in it’s current form is fully functional but still lacks the visual appeal that you may want. To fix this we can add a fillet or chamfer to the edges of the model.

Open the Fillet or Chamfer feature and select all faces or edges that you want to edit. If you want to add all edges to the selection, select the Use all edges option. Make sure to set a radius that works for your model. If the radius is to big, the selection will turn red. Confirm the task once you are happy with the preview.

Note: Fillets and Chamfers should be the very last step in your model creation process. Editing a model after adding these features may cause issues with external references. If you need to change something it is recommended to remove these features first.

093b432551000523193ac0f435d95276.png bc44455505a669d5c88e993dc062be99.png

Congratulations! You have sucessfully created your first parametric 3D model!

Export your model

To export your model, select the entire body in the model menu. Go to File –> Export to export the model. For 3D printing, choose 3MF or STL as the file type.

e418831b125a3987a9b568d59773d69b.png

What’s next?

Now that you know the basics of FreeCAD it is up to you to decide what you want to create. Keep in mind that this article barely scratches the surface of what is possible. Check out the detailed FreeCAD wiki for more information!

FreeCAD Wiki: https://wiki.freecad.org/Main_Page