Tutorial · intermediate level

A printable enclosure

A 120 × 80 × 40 enclosure with 2.5 walls, four drilled screw bosses, a connector opening and a lid with ventilation slots, countersunk for flush M3 countersunk screws. Everything is done with Solids, Join and Subtract, then an STL export.

Intermediate level · about 20 minutes · all sizes in millimetres

Before you start

  • This tutorial assumes the basics (Line, Rectangle, Extrude, groups): watch a beginner tutorial first if needed.
  • Solids (key K) place parts already grouped: the Box accepts length;width;height in one go, the Cylinder radius;height.
  • Join and Subtract (key N): click the solid to keep first, then the others. With several groups already selected, the operation is immediate.
  • Move by hand: select, click a start point, the mouse moves off along an axis (the magnet holds it: red X, green Y, blue Z), then type only the distance. One press on Ctrl makes a copy.
  • Right after a copy, typing *7 repeats it: seven more copies, at the same spacing.
  • Each tool stays active after use; Esc returns to Select.

Tools used: Solid Box, Cylinder and Cone, Offset, Extrude, Move, Join, Subtract, Colour, Section plane, Export (STL).

The screenshots show the interface in French; the tools are the same in every language.

1. The box and its walls

  1. Solid, Box shape: click the origin, then type 120;80;40, all three sizes in one go.
  2. Double-click the box to open it. Offset: click the top and type 2,5, the wall thickness.
  3. Extrude: move the middle face down by 37,5. A 2.5 base remains. Esc to leave the group.

A Solid arrives already grouped: double-clicking opens it so its faces can be worked like a drawing.

The box
Box “120;80;40”.
The offset
Offset “2,5” on the top.
The hollow
Extrude “37,5” downwards.
The hollow box
2.5 walls and base.

2. The screw bosses

  1. Top view. Solid, Cylinder shape: click the base in a corner, 8 from the walls, then type 4;37,5 (radius and height): a Ø 8 boss up to the top.
  2. Select the boss, Move, one press on Ctrl to copy: click the centre of the boss, the mouse follows the red axis, type 104.
  3. Select both bosses, same gesture along the green axis: 64.
  4. Join: click the box, then the four bosses, one after the other.

Once joined, box and bosses are a single closed part, ready to be drilled.

The first boss
Cylinder “4;37,5”.
The copy
Ctrl, red axis, 104.
Four bosses
Green axis, 64.
Join
One single part.

3. Subtract: screw holes and connector

  1. Cylinder at the centre of a boss: radius 1,25, then 30 downwards, a Ø 2.5 pilot hole.
  2. Select it, Move: the mouse goes up along the blue axis, type 5: the hole sticks out of the boss. Copy it like the bosses: 104 along the red axis, then both at 64 along the green axis.
  3. Box on the front face: 12;6, then 10 inwards, the space for the connector.
  4. Subtract: click the box, then the connector and the four holes.

A solid that sticks out cuts cleanly and is easy to click: the first one clicked is kept, the others are removed.

A hole
Cylinder of radius 1.25, 30 downwards.
It sticks out
Blue axis, 5 upwards.
The connector
Box “12;6”, 10 inwards.
Subtract
Connector and holes removed.

4. The countersinks in the lid

  1. Close up, top view. Cylinder at the centre of a hole, on top of the boss: radius 1,6, then 5 upwards, the clearance for an M3 screw.
  2. Cone shape: click the centre of the top of the cylinder, type 5,5 (radius), then 5,5 downwards: the 90° countersink.
  3. Drag a selection box from left to right around both: only what is entirely inside is selected. Join: cone and cylinder become one.
  4. Copy the countersink like the bosses: Move with Ctrl, 104 along the red axis, then both at 64 along the green axis.
  5. Box laid on the top corner: 120;80;2,5, the lid. The countersinks stick out above it.
  6. Subtract: click the lid, then the four countersinks.
  7. Select the lid, Move: the mouse goes up along the blue axis, type 30: it lifts off.

Equal radius and height: a 90° cone, the angle of countersunk screws. At the surface of the lid the countersink is Ø 6: the head of an M3 screw sits flush.

The clearance
Cylinder of radius 1.6, 5 upwards.
The countersink
Cone “5,5”, 5.5 downwards.
The selection box
Left to right: cone and cylinder.
Four countersinks
Join, then 104 and 64.
The lid
Box “120;80;2,5”.
Subtract
The lid, then the countersinks.
It lifts off
Blue axis, 30.

5. The slots in the lid

  1. One slot: Box 3;40 on the lid, 10 downwards, then Move it 5 up along the blue axis so it sticks out.
  2. Select the slot, Move with Ctrl: 6 along the red axis, then type *7 straight away: seven copies, eight slots in all.
  3. Select the lid first, then Shift + click on the eight slots, and click Subtract. Colours of your choice: grey for the box, orange for the lid.

With the selection made, Subtract acts at once: the first one selected is the one subtracted from.

One slot
Box “3;40”, 10 downwards.
The repeat
Copy at 6, then “*7”.
The selection
The lid, then the eight slots.
The slots
All eight slots at once.

6. Section plane and STL export

  1. Section plane: click the front face, then type 8: the cut goes through the bosses and the countersinks.
  2. Close up, the 90° countersink shows in section. The sections button in the header hides or shows it.
  3. Ctrl + A, then Export, STL format: the file goes to the printer's slicing software.

The STL is in millimetres. Print the enclosure base down and the lid flat, in the plastic of your choice.

The section plane
8 from the front face.
In section
Drilled bosses and countersunk lid.
The countersink
Close up: the M3 screw sits flush.
Export
STL format.
The finished enclosure
The enclosure and its lid, ready to print.

The finished enclosure

The enclosure from three quarters The enclosure from above The enclosure from the back The enclosure from the front

Free, with no ads. To go further: feet under the base, a rebate so the lid fits in, or an opening for a switch.