An enclosure with a lid
You will make a small project box, 80 × 60 × 30 mm with 2 mm walls and a cable hole, and a lid with a lip that fits inside it. The lid gets a slip fit from the Fit presets so it goes on by hand and stays on, and a hole for a 5 mm LED. The box and the lid are two parts, each in its own file.
The box
1. Block
- Click File > New Part.
- On the Sketch tab, click Top Plane.
- Click Center Rectangle. Click the origin, then click up and to the right.
- Click Smart Dimension. Click the bottom line, place the dimension, type
80and pressEnter. Click the right-hand line, place it, type60and pressEnter. - Click ✔ Exit Sketch.
- Click Extruded Boss/Base and set Depth to
30.
2. Hollow it out
- Click the top face of the block.
- Click Shell. The top face is removed and the block is hollowed.
- In the Properties panel, set Thickness to
2.
The box now has 2 mm walls and a 2 mm floor. Inside, it is 76 × 56 mm and 28 mm deep.
3. Cable hole
- Turn the view so you see the front face of the box, the one facing the -Y direction. Click it.
- On the Sketch tab, click Sketch. The view turns to face it. The part origin is at the middle of the face’s bottom edge.
- Click Circle. Click a point to the right of the middle, then click again to set a size.
- Click Smart Dimension:
- click the circle, place the dimension, type
11and pressEnter; - click the origin, then the circle’s center, and place the dimension to the side so it measures up:
type
15and pressEnter; - click the origin and the circle’s center again, and place the dimension above them so it measures
across: type
20and pressEnter.
- click the circle, place the dimension, type
- Click ✔ Exit Sketch.
- Click Extruded Cut. Keep the Blind depth of
10: it goes through the 2 mm wall and stops in the empty box. (Through All would drill the back wall too.)
4. Save the box
Press Ctrl+S and save it as enclosure.3bcad. Evaluate > Mass Properties gives a volume of about
24 642 mm³.
The lid
5. Plate
- Click File > New Part.
- On the Sketch tab, click Top Plane. Draw a Center Rectangle on the origin and dimension it
80by60, as for the box. - Click ✔ Exit Sketch, then Extruded Boss/Base with Depth
2.
6. Lip
The lip is a 2 mm wall that fits inside the box’s 76 × 56 mm opening.
- Click the top face of the plate. On the Sketch tab, click Sketch.
- Draw a Center Rectangle on the origin and dimension it
76by56. - Click ✔ Exit Sketch, then Extruded Boss/Base with Depth
4. - Click the top face of the block you just made. On the Sketch tab, click Sketch.
- Draw a Center Rectangle on the origin and dimension it
72by52. - Click ✔ Exit Sketch, then Extruded Cut with Depth
4.
The block is now a hollow lip, 4 mm tall, standing on the plate.
7. LED hole
- Click the flat face inside the lip. On the Sketch tab, click Sketch.
- Click Circle, click the origin, then click to set a size. Dimension it
5.5with Smart Dimension. - Click ✔ Exit Sketch, then Extruded Cut. Set the end condition to Through All.
8. Fit the lip
The lip is exactly as big as the box’s opening, so it would not go in. Fit moves its outside faces in by a clearance.
- Click one of the four outside faces of the lip, then Ctrl+click the other three.
- On the Features tab, click Fit.
- The clearance starts at the slip fit for the part’s material,
0.15mm for PLA. To change it, click a preset in the Properties panel: on the FDM: PLA, PETG row, Press is 0.05, Slip 0.15 and Loose 0.3 mm.
With the slip fit, the lip is 75.7 × 55.7 mm: 0.15 mm smaller than the opening on every side. If you print in another material, set it first with File > Material; the presets are listed in The 3D Print tab.
9. Save the lid
Save it as enclosure-lid.3bcad. Its volume is about 11 442 mm³.
10. Export STL/3MF / Send to Slicer
Both parts print the way they are modelled: the box with its open side up, the lid with its lip up. The flat outside of the lid is on the bed, so it comes out smooth. For each part:
- Open the 3D Print tab and pick your printer. ✔ Fits shows the part’s size.
- Keep Quality: Fine.
- Click Export 3MF (or Export STL), or pick your slicer and click Send to Slicer.
To print both in one go, put them in an assembly (File > New Assembly, then Insert each part) and click 3MF or Send to Slicer on the Assembly tab. See Assemblies.
When the parts are printed, turn the lid over and press it into the box.