Customizable Bayonet Container

by walter, published

Customizable Bayonet Container by walter Mar 4, 2013
8 Share
Download All Files

Thing Apps Enabled

Open in Customizer Order This Printed View All Apps


Liked By

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

Thing Statistics

24698Views 6316Downloads Found in Containers


Customizable cylindrical containers with lids that twist on. Use the customizer to generate base, lid, and optional separator parts for multi-chamber containers. Multiple styles are available.

Several example stl files are included.


To make a container, you'll want to make a base and lid part, and maybe some separators for multi-chamber containers. Most of the parameters should be fairly straightforward and are described below. Sizes are specified for the interior of the container, to make it easier to design the container to fit specific objects. The "part gap" may take some testing to get right for your printer, it adjusts how tightly the lid and base fit. With my printer, printing the parts one at a time gives more consistent results when trying to fine-tune the part gap parameter.

Configurable Parameters:

part - Type of part to make, base, separator, or lid. The separator is for multiple-chamber containers (you may want to build the container upside down, with the lid on bottom when using separators).

inside diameter - Minimum diameter of the inside of the container in mm (container will be larger)

interior height - Amount of height this part adds to the overall interior space of the container in mm (exterior dimensions will be larger).

style - Style of the container: round (straight cylindrical sides), round thin (same as round, but with interior cutouts to make the walls thinner), tapered (thinner at top or bottom), polygon (flat sides, helps with grip), crown (blended between round and polygon), and flipped crown (same as crown, but upside down)

number of sides - Number of sides for the polygon and crown styles.

minimum wall thickness - Thickness to use for the thinnest vertical wall sections.

top bottom thickness - Thickness used for the bottom of the base and the top of the lid.

lip height - Height of the container lip with the bayonet threads. Values of around 2-3mm seem to work well.

bayonet depth - depth of the bayonet thread used to hold the parts together. Larger containers may need larger values, but values around 0.5mm seem to work well for small to medium containers.

part gap - This is the amount of space between the bayonet threads. Use this to adjust how tightly the parts fit (smaller value results in a tighter fit). It may take some trial and error to fine tune this parameter for your printer.

support material should only be needed on the optional separator pieces.

More from Containers

view more

All Apps

Customizer is the easiest way to take great 3D printable designs and make them your own. Make your OpenSCAD designs infinitely more valuable by empowering the community to customize them.

App Info Launch App
Customizer Thing App

Auto-magically prepare your 3D models for 3D printing. A cloud based 3D models Preparing and Healing solution for 3D Printing, MakePrintable provides features for model repairing, wall thickness...

App Info Launch App

Kiri:Moto is an integrated cloud-based slicer and tool-path generator for 3D Printing, CAM / CNC and Laser cutting. *** 3D printing mode provides model slicing and GCode output using built-in...

App Info Launch App
KiriMoto Thing App

With 3D Slash, you can edit 3d models like a stonecutter. A unique interface: as fun as a building game! The perfect tool for non-designers and children to create in 3D.

App Info Launch App

Print through a distributed network of 3D printing enthusiasts from across the US, at a fraction of the cost of the competitors. We want to change the world for the better through technology, an...

App Info Launch App

Quickly Scale, Mirror or Cut your 3D Models

App Info Launch App

Treatstock is an online platform that offers decentralized manufacturing services such as 3D printing and CNC machining for business-to-business and business-to-consumer sales all over the world. W...

App Info Launch App

3D print your favourite design with NinjaPrototype, a professional 3D manufacture with consistent quality and speed.

App Info Launch App

Would love to use it, but it seems the error is due to the Thingiverse code on the site when I read the forum.
Now I copied the code and used it inside OpenSCAD (Development snapshots) all working and is very useful.


When setting the part gap. Do i input the same number for the base and lid?
I made one with a gap of 0.25 and it still does not turn.


I also have 2 errors in the code. The lid hasn't been created. I was trying to adapt your scad design for making a 26650 battery case.


download that file, then change the line use <utils/build_plate.scad> to use . Place the build_plate.scad file in the same directory as the bayonet scad file

The lid is created by changing the following.
_part = "base"; // [base,lid,separator]

Build Plate Library for Customizer

The error are:
WARNING: Can't open library 'utils/build_plate.scad'.
Compiling design (CSG Tree generation)...
WARNING: Ignoring unknown module 'build_plate'.

Customizer doesn't work at the time this comment was written. A message came that said error.

Would be awesome to be able to also add a rounding for the inside of the container, so something like grease won't get stuck in the corners. But I'm very impressed with this, awesome scad design!

wow this is exactly what i needed! thank you so much

Absolutely love it - so useful and attractive parts. I am printing my first box right now! Thank you :)

Very nice SCAD!!! I will make some tests tomorrow!!!

Very good design and very useful, congratulations!

Great photography here.

I made this with a part gap of 0.04 and it leaks when water is placed inside. Is it reasonable for me to try it with a part gap of 0.00 or should I just do 0.01? Is there any other settings I can change so that it won't leak at all?

I am trying to find a leak proof container, so if someone can help me find a design then let me know.

I don't think you'll be able to get a waterproof seal with this design. I would try making a NinjaFlex gasket for a waterproof seal and a screw style lid will probably be better for putting pressure on the gasket.

Thanks for the great model(s). I noticed that the lid does become loose if it is screwed and unscrewed a couple of times. Maybe it would be better to add a little blob on the connector in order to prevent the lid from rotating (when closed)

Found the defaults made something so flimsy I could barely print it, let alone use it, at least on my SD3. I had to change almost all the defaults to make thicker walls and bottoms, for instance.

This design has been so handy for many of my needs,...Thanks for the creation

Whenever I try to slice a container with slic3r it won't produce the top portion, with the latches or whatever they're called.

Here's a picture of what I'm getting from slic3r:


Any tips? Thanks!