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.

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

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

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

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

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

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

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.

