Make a box with a removable lid

Make a box and a separate lid that sits on it.

Make a 60 × 40 × 20 mm open box and a separate lid. The lid has a raised rectangle, or locating lip, that sits inside the opening when you turn the lid over. This example leaves a modelled gap of 0.5 mm on each side of that lip.

An open rectangular box sits beside its separate lid, whose smaller raised rectangle forms the locating lip.

The gap is an example, not a tested fit. A printed fit depends on your printer, material and settings. Test the fit before using the box for a particular purpose.

Open the CADit editor on a computer. Save existing work, choose New from the three-line menu and leave Doodle Mode off.

Draw and size the box

  1. Open the shape menu in the left toolbar and choose Rect.
  2. Drag a rectangle in the 2D panel, then choose Select.
  3. Select the rectangle. Open Properties → Size and leave Lock Aspect Ratio unchecked.
  4. Set Width to 60 mm and Height to 40 mm. Press Tab after each value to apply it.
  5. Click a blank area, select the rectangle again and open Position.
  6. Set Center X to −40 mm and Center Y to 0 mm.
  7. Open 3D Properties and set its Height to 20 mm and Z Offset to 0 mm.

Size Height measures the rectangle across the 2D panel. The separate 3D Properties Height measures its extrusion above the drawing plane. After resizing a rectangle, click away and select it again before setting its position.

Hollow the box

  1. Draw another rectangle in an empty area, then choose Select and select it.
  2. Set Size Width to 56 mm and Height to 36 mm, with Lock Aspect Ratio unchecked.
  3. Click away and select this smaller rectangle again.
  4. Set Position Center X to −40 mm and Center Y to 0 mm so it shares the box's centre.
  5. Set 3D Properties Height to 30 mm and Z Offset to 2 mm.
  6. Choose Hole in the tools between the panels.

The cutting rectangle starts 2 mm above the drawing plane and extends beyond the box's top. It leaves a 2 mm floor and 2 mm walls: (60 − 56) ÷ 2 = 2, and (40 − 36) ÷ 2 = 2. The inside depth is 20 − 2 = 18 mm.

The see-through shape extending above the box is the cutting object. It is absent from the STL; the solid box has an open top.

Make the lid beside the box

  1. Draw a third rectangle in an empty area, choose Select and select it.
  2. Set Size Width to 60 mm and Height to 40 mm.
  3. Click away and select it again. Set Position Center X to 40 mm and Center Y to 0 mm.
  4. Set 3D Properties Height to 2 mm and Z Offset to 0 mm. This is the lid plate.
  5. With the plate selected, choose Duplicate in the tools between the panels.
  6. Set the duplicate's Size Width to 55 mm and Height to 35 mm.
  7. Click away and select the smaller rectangle again. Set Position Center X to 40 mm and Center Y to 0 mm.
  8. Set 3D Properties Height to 3 mm and Z Offset to 2 mm.

The smaller rectangle begins where the plate ends, making one lid 5 mm high. If overlapping shapes are hard to select, use Scene to select an individual rectangle, then return to Properties.

The lip is 1 mm smaller than the box opening in each direction: 56 − 55 = 1, and 36 − 35 = 1. Centred in the opening, that gives a 0.5 mm gap on each side. The plate covers the rim when the lid is turned lip-down; this is a removable lid, with no latch or snap feature.

Save the project and export both parts

The finished box-and-lid.cadit contains the box, cutting rectangle, lid plate and lip. Choose Open CADit File from the three-line menu to open it.

  1. Open the menu and choose Save CADit Project.
  2. Enter box-and-lid in File name and choose DOWNLOAD FILE.
  3. Choose CLOSE, reopen the menu and choose Export STL.

The STL contains the box and lid as two separate parts beside each other. Open it in your slicer, the program that prepares a model for a printer. Check each part's dimensions: box 60 × 40 × 20 mm; lid 60 × 40 × 5 mm. The whole side-by-side layout is about 140 mm wide, so its total width is not the box width.

Check that the box is open, the floor is present and the lip is joined to the lid plate. Keep the .cadit file to adjust the opening or lip, and export a fresh STL after each change.