Letter Studio
  1. Home
  2. Tutorials
  3. Screw-top container

MS 3D Lab · threads

Make a screw-top container with a threaded cap

A small screw-top container: a printed M30 thread on the container and a matching threaded hole in the cap. You build it from four items (a bolt, a threaded hole and two holes) and two groups. It holds about 10 ml.

MS Letter Studio · Updated 8 November 2026

A hexagonal container with a printed thread and a round cap with a threaded hole beside it
The container and its cap in MS 3D Lab. Screenshot of the app.

This tutorial at a glance

Difficulty
Intermediate
Print time
56 min on 1 plate
Filament
26.12 g PLA, one colour
Print pieces
2: container and cap
Finished size
Container 53 × 46 × 35 mm, cap 40 × 20 mm; closed 38.7 mm high; inside 20 mm across and 32 mm deep (about 10 ml)
Thread
M30, snug fit (0.15 mm) on both pieces

Times and weights: Bambu Studio CLI 02.06, X1C, 0.20 mm Standard profile, Generic PLA. Your printer and settings will differ. This design has not been test-printed yet: print one before you rely on it.

Open this design starts MS 3D Lab with the finished design from this tutorial. The project file is the same design for later: open it in MS 3D Lab with Open….

What you need

  • Any FDM printer.
  • About 27 g of PLA.

1. Start with a bolt

An M30 bolt 35 mm long standing on its hex head, with Fit gap at Snug fit
An M30 bolt, 35 mm long: the body of the container.

In the panel on the left, under Screws and threads, click Bolt. If the group is closed, click its name to open it. On the right, under Settings, pick Thread M30; under Size, type Length 35; under Position, type X -30 and Y 0, pressing Enter after each. Leave Fit gap at Snug fit (0.15 mm). The hex head becomes the base of the container.

2. Hollow it out

The bolt hollowed by a 20 mm hole from 3 mm above the plate, grouped
The bolt becomes a container with a 3 mm floor.

Under Holes, click Cylinder hole. Type W 20, D 20, H 33, then X -30, Y 0 and Lift 3, so the hole starts 3 mm above the plate. Shift+click the bolt and click Group them: the bolt is now a container with a 3 mm floor.

3. Add the cap body

A cylinder 40 mm across and 20 mm high beside the container
A 40 × 20 mm cylinder: the body of the cap.

Under Basic shapes, click Cylinder. Type W 40, D 40, H 20, then X 30 and Y 0. Under Colour, click the container’s colour, so both pieces print with one filament.

4. Cut the thread into the cap

The cap: the cylinder with an M30 threaded hole 17 mm deep, grouped
An M30 threaded hole 17 mm deep, with a 3 mm closed end.

Under Screws and threads, click Threaded hole. Pick Thread M30, type Length 17, then X 30, Y 0 and Lift 3. Leave Fit gap at the snug fit. Shift+click the cylinder and click Group them. With 0.15 mm on each piece, the thread has 0.30 mm of play in all.

5. Read the print check

The Print check panel listing both pieces with the thread flanks marked as overhangs
Print check: only the thread flanks are marked.

Click Print check. It marks the thread flanks of both pieces as overhangs: every ISO thread printed standing up has these 30° flanks. Leave supports off; the lower flanks come out a little rougher. Do not press Best side down here: it would turn the pieces over. The container stands on its hex head and the cap on its closed end.

6. Export the print file

The Export window after the download of screw-top-container.3mf, 2 objects, 1 colour
Export: screw-top-container.3mf, two objects.

Click Export…, type screw-top-container in File name, then click 3MF for Bambu Studio. If you want to check the thread on your printer first, print the cap on its own before the container.

Make your own threaded parts

Open this design in MS 3D Lab and try another size: the thread list has metric sizes up to M30 and inch threads too.

Good to know. Files from MS 3D Lab are geometry for your slicer, not G-code. Print a test piece first, and check that hooks, holders and threads carry the load you need before you rely on them.