# FreeCAD Tutorial: Pen Holder

Table of Contents

Sketcher and Part Design are two FreeCAD workbenches that work closely together, typically used to turn 2D geometries into 3D models. In a nutshell, through the Sketcher workbench you create the blueprints of parts that are manipulated through the Part Design workbench.

We’ll now see how to use the Sketcher and Part Design workbenches to create a minimalist pen holder model that you can print with a 3D printer.

Before continuing, it is important that you have FreeCAD installed on your machine, and that you are familiar with how to navigate the interface. If you haven’t checked my previous post on FreeCAD for Beginners, now is a good time do to so!

Step 1: Create a new project, then move to the Part Design workbench

Create a new project, then select the “Part Design” workbench on the workbench selection box.

Part Design Workbench - FreeCAD for beginners

Step 2: Create a new body, and then create a new Sketch. Choose XY as base plane.

You can use the shortcuts on the left sidebar to create a new body, and then create a new sketch on that body. When creating the sketch, select the XY_Plane.

Creating a new Body on FreeCAD

Step 3: Select the square/rectangle tool, then create a rectangle at the center of the canvas.

Don’t worry about the size now, we’ll set up constraints in the next step.

Creating a rectangle shape on FreeCAD Part Design

Step 4: Select the horizontal width constraint, then set the size of 60mm.

Constraints allow you to specify a set of rules that can be applied to points, lines, and angles. For this example, we’ll us constraints to limit the size of the rectangle that serves as base for our model.

Adding an horizontal width constrain to the rectangle

Step 5: Select the vertical width constraint, then set the size of 40mm.

Repeat the process to set up the depth of the pen holder.

Adding a vertical width constrain to the rectangle

Step 6: Centralize the object for a fully constrained sketch

If you look at the “Solver Messages” dialog on the top left, you’ll notice it says “Under-constrained: 2 DoF(s)”. This means your design is not “locked in place”, and there are 2 dimensions in which it can move. That might not seem like a big deal (and in many cases it isn’t), but it’s preferable to have your sketch fully constrained to serve as solid base for other parts of your design. There are different ways to do that, but for this sketch we can use the symmetry constrain. This constrains creates a symmetry rule between two points and a reference line or point.

Select the symmetry constrains, then select the top left point of the sketch, then the top right point of the sketch (the top corners), and only then select the Y axis as reference line. The sketch will automatically move to a vertically symmetric position.

Adding a vertical symmetry constrain to the rectangle

Now repeat the process, this time selecting the left corners (top left, bottom left) and the X axis as reference line to centralize horizontally.

You’ll notice that as soon as you finish setting up the symmetry constrains, your sketch will be green and the Solver messages dialog will display Fully constrained.

Step 7: Select the pad tool and pad to the height of 100mm.

Close the sketch. This will bring you back to the Part Design workbench, automatically. You can then select the pad tool, setting the type to Dimension and the height to 100mm. Click “ok” to confirm.

Padding the Sketch on FreeCAD

Step 8: Create a new sketch based on the top face.

Select the top face of the object, then click on the sketch button to create a new sketch using that face as attachment.

Creating a new sketch on top of a face

Step 9: Create a rectangle form slightly smaller than the first one, using the constraints of 56mm and 36mm for width and height, respectively.

Repeat the process from steps 3 to 6 to create a smaller rectangle of 56x36mm inside the previous one. We’ll use this sketch to create a “pocket”, turning the initial rectangle in a box, leaving 2mm at each side as border. Make sure it’s centralized so all borders have the same thickness.

This is how the sketch should look like when you’re finished:

Creating a new rectangle to use with the pocket tool

Step 10: Use the pocket tool to hollow the model.

Close the sketch, and you will be brought back to the Part Design workbench. Then, use the pocket tool instead of pad - this time we want to create a pocket to make the model hollow. Select the “Dimension” type and the length of 90mm, which will leave 1cm for the bottom.

Creating a pocket in the model

Step 11: Use the fillet tool to round the edges slightly.

For a final detail, you can use the fillet tool to round some edges. Select one of the faces of the model, then select the “Fillet” tool. Click on the “add ref” button to add all external faces, one by one. Rotate the model and add the other faces. You can use the radios of 1mm for a discrete effect. When you’re done, click the “OK” button.

Using the fillet tool to round edges on FreeCAD

And it is done! If you want to print this model, you can export it through the menu File -> Export, then choose the STL format. You can then import the STL to a slicer software to get it ready for printing.

I hope you have enjoyed this tutorial. Check also other posts under the 3d printing tag!

My avatar

Thanks for reading until the end! Feel free to check out my other posts, leave a comment, or reach out via the social links in the footer.


More Posts

Comments