Level 7 · Build real things · about 30 minutes · free
Electronics enclosure with a USB-C port
A small box for a circuit board: rounded corners, 2 mm walls, a slot for a USB-C cable and four screw holes in the floor. Then you hand it to two people: the printer gets a print file, the electronics designer gets a STEP file to check the board fits.
Cut a slot through a wall from a sketch on an origin plane
Draw several holes in one sketch and cut them all at once
Check the volume against a hand calculation
Send one part to two different people in the format each needs
Step by step
Draw the footprint. New design. New Sketch on the XY plane. Choose Rectangle, click the origin and type 80, Tab, 60. Finish Sketch.
Make the block. Extrude the rectangle 30 mm. OK.
Round the corners. Fillet the four vertical edges, radius 5. One edge hides behind the block: switch the display style to Wireframe to pick it, then back to Shaded.
Hollow it. Shell, click the top face (it is removed), Thickness 2, Direction Inside. OK. The box keeps its outside size and gets 2 mm walls and floor.
Sketch the USB-C slot. New Sketch on the XZ plane: you look straight at the front wall. Choose Rectangle › Center rectangle, click at 40, 8 (the readout next to the cursor shows it), then type 10, Tab, 4. Finish Sketch.
Cut it through the wall. Extrude, the rectangle is picked. Set Distance 5 and Operation Cut, and tick Reverse Direction so the arrow points into the box. OK. Don’t press Enter in the Distance box: it confirms the whole feature as it is.
Sketch the screw holes. New Sketch on XY, press End to see the whole box. Choose Circle, click at 10, 10, type 3.4 and Enter. Repeat at 70, 10, 10, 50 and 70, 50. Finish Sketch.
Cut all four at once. Extrude, then click Sketch3 in the browser: 4 selected, Operation Cut. Distance 5 (anything over 2 mm goes through the floor). OK.
Check it. INSPECT › Properties on Body1: Volume 24251.88 mm³, bounding box 80 × 60 × 30 mm, 31.3 g in the default material. Save as enclosure.
Hand it to the printer. File › Send to Slicer. For Print face, look from below (click the blue −Z dot on the view cube) and click the outside of the floor. The box prints open side up with no supports: the 10 mm top of the USB slot is a short bridge any printer can span.
Hand it to the electronics designer. File › Export › CAD & 2D › STEP… STEP keeps exact curves and sizes, so they can load the box next to the circuit board in their PCB tool and check that the USB-C socket lines up with the slot and the four holes match the board’s mounting holes.
Tips
Check the volume by hand. Outside block minus the rounded corners: 143356 mm³. The hollow inside (76 × 56 × 28 with R3 corners): 118952 mm³. The difference is 24404 mm³; take away the slot (80) and the holes (73) and you get the measured 24251.88. When the numbers agree, the model is what you think it is.
Holes come from the board. Real boards list their mounting holes in their datasheet, often 3.2 mm holes at fixed spacing. Copy those positions into the sketch, and make the hole in the box slightly bigger (3.4 mm) so an M3 screw passes freely.
Leave room for the plug. A USB-C socket is about 9 × 3.3 mm, but the cable’s plug is bigger. 10 × 4 mm fits the socket; if the plug hits the wall, widen the slot or make the wall thinner around it.
Why STEP and not STL. An STL is triangles: good for printing, poor for measuring. STEP keeps true circles and flat faces, so another CAD or PCB program can snap to them and measure exactly.
Check yourself
Why fillet the corners before the shell, not after?
Shell then offsets the rounded corners, so the inside gets matching R3 corners and an even 2 mm wall all the way round.