3D Printing Generator
DeutschEnglish

How to print a spray can straw holder

Anyone who regularly works with penetrating oil, contact cleaner or compressed air spray knows the problem: the thin extension straw that clips onto the spray valve eventually falls off and disappears into the back of a drawer. Without the straw, though, you lose the ability to aim the fine spray jet precisely into tight gaps, locks or hinges – you end up spraying blind into the general area. This generator builds a small holder that keeps the straw permanently attached to the can, either as a clamp ring that tensions itself around the can, or as a tape-on holder for cans too large for a clamp ring to grip.

Why a straw holder?

The extension straw usually just sits loosely on the can’s valve head with no attachment of its own. It slips off during transport in a toolbox, while being put back on a shelf, or simply from vibration. A printed holder solves this with a simple clip that has a small entry taper on the side of its straw hole: the straw is pushed in sideways and snaps into a narrower gap behind the taper. It then sits firmly in place, yet can still be pulled out again when needed, for example to clean it or move it to a different can.

Two shapes are available. The clamp ring is a ring with an opening slightly narrower than the can; it is pushed over the can once and then holds itself in place through the material’s own tension. This works well for cans up to roughly 70–80 mm in diameter – larger cans would stretch the ring too far, or it simply would not fit over the can’s base in the first place. For those cases there is the tape-on holder: a small saddle fixed directly to the can with one or two strips of double-sided tape. It needs no spring tension at all, so it fits almost any can size as long as the surface is flat enough to stick to.

What you need

A simple pair of calipers is all you need for measuring. You need two dimensions: the can diameter at the spot where the holder will sit, and the diameter of the straw, usually somewhere between 1.5 and 3.5 mm depending on the manufacturer and the type of spray. Almost any FDM printer with a 0.4 mm nozzle can print either shape; PLA is a good choice for both, and PETG works just as well. For the tape-on holder you will also need a strip of double-sided or mounting tape that matches the width of your printed holder.

Clamp ring or tape-on holder

The choice between the two types depends mostly on the can’s diameter. For common spray cans up to about 60 mm – penetrating oil, contact cleaner, many lubricants – the clamp ring is the more convenient option: slide it on once and it holds by itself, no tape needed, and it can be pulled off again if you need it on a different can later. The opening angle controls how far the ring has to flex open while sliding it on; the default of 36° is a good compromise between grip and ease of fitting, and it has been thoroughly tested in the original design. Larger values close the ring further and clamp tighter but are harder to slide on; smaller values go on more easily but hold less firmly.

For larger cans – 400 ml air duster spray, big cleaner bottles, or anything above roughly 70 mm – a clamp ring either ends up loose with no real clamping force, or simply does not fit over the can’s rim mechanically. This is where the tape-on holder works better: instead of wrapping around the can, it lies flat against it and gets taped in place. For this type, the height directly matches the width of your tape strip, so measure your tape first and set the height to match, rather than trimming the tape afterward.

Both types get the same straw clip: a small block with a hole for the straw and a side slot the straw is pressed through. If you need two straws at once – for example because your can shipped with one long and one short straw – set number of straws to 2: the generator then places two clips side by side, with their angular spacing controlled by clip spacing. On very small cans or with a very narrow opening angle, the available space can get tight; the generator warns you when that happens, and you either widen the opening angle or reduce the clip spacing.

Getting the perfect fit

The most critical value is the straw diameter, because it determines how snugly the straw sits in the clip. Since printers, print settings and filament all shift the result slightly, it is worth printing not just one but three or four variants in 0.1 mm steps – for example 2.1, 2.2, 2.3 and 2.4 mm if your straw measures around 2.3 mm. You can safely cut the height down to 4-5 mm for this test, so a test ring finishes in a few minutes and uses very little filament. Try each variant with the real straw and keep the one that snaps in with a noticeable click but no real effort.

A second, very practical trick comes straight from the original design and needs no repeated printing at all: print the holder once with a straw diameter that is deliberately a bit too large, so the straw slides through loosely. Then wrap a narrow strip of tape around the straw in layers until it sits snugly in the clip, counting how many layers you needed. Ordinary tape is roughly 0.05 mm thick, and each wrap adds it on both sides; multiply the layer count by twice that thickness and subtract the result from your original straw diameter value to get a good target for the next, final print. That way you skip printing several test variants altogether.

If a finished clamp ring slides on the can instead, the usual cause is the can diameter: deliberately enter a value a little smaller than measured, say 0.5 to 1 mm less. That presses the ring harder against the can and increases friction without making it mechanically impossible to open. If that is still not enough, a short strip of double-sided tape on the inside of the ring helps – a combination of clamping and a bit of adhesive that smooth, coated cans sometimes need.

Printing tips

Both shapes are pure 2D outlines extruded upright and need no support structures at all: the ring stands on its circular cross-section, the tape-on saddle on its base, and both have continuously vertical walls with no overhang. A 0.2 mm layer height and a 0.4 mm nozzle are entirely sufficient. For the clamp ring, close to 100 % infill (or at least a great many wall lines) is worth it, since its clamping force depends on the stiffness and elasticity of the whole ring – a thin-walled, loosely filled ring loses tension over time. The tape-on holder never has to provide any spring force, so 15–20 % infill is plenty, saving both filament and print time.

A note on durability: PLA holds its shape well, but under sustained mechanical tension – exactly the kind of load a clamp ring carries for weeks or months – it is prone to creep, a slow, permanent yielding of the material. In practice this means a clamp ring that felt very snug right after printing may loosen up a little after a few months. That is normal and usually not a problem, since the ring still holds well enough by then; if it stops holding, just print a fresh one from the same link. If you want to avoid this altogether, PETG resists creep much better, at the cost of a little extra care while printing it.

When using the tape-on holder, wipe the can’s adhesive surface with alcohol, or at least a grease-free cloth, before sticking it on – many spray cans have a slightly oily or dusty surface that even good tape struggles to grip. Use a sturdy double-sided mounting tape rather than thin craft tape, and the holder will stay put reliably even if it gets bumped occasionally inside a toolbox.

Origin and license

This generator is a port of “Yet Another Spray Can Straw Holder” by DrLex, released under the Creative Commons Attribution 4.0 (CC BY 4.0) license. The clamp ring, the tape-on holder and the straw clip with its entry taper were taken from the OpenSCAD source and ported to TypeScript; volume and dimensions were compared against the unchanged original model. New compared to the source is the option for two straw clips side by side.

Many thanks to DrLex for this well-tested, thoughtfully designed holder. All licenses of the projects used here are listed on the licenses page. Now open the straw holder generator, measure your can and your straw, and print your first holder – or get inspired by the examples.

All parameters

The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.

ParameterDefaultRangeMeaning
Holder
Can diameter57 mm40 – 80 mmMeasure the can with calipers. For the clamp ring, a value slightly smaller than measured gives more clamping force.
Height8 mm3 – 32 mmHeight of the holder. For the tape-on type this matches the width of your strip of tape.
Wall thickness1.8 mm0.8 – 3 mmThickness of the wall. Best set to a value that yields a whole number of outer lines.
Straw
Straw diameter2.3 mm1 – 4 mmDiameter of the hole for the extension straw. The best value depends on your printer, settings and filament – try a few variants.
Number of straws11 – 21 clip, or 2 clips side by side for two straws.
Clip spacing25 °15 – 60 °Angle between the two clips when two straws are selected.
Advanced
Opening angle36 °0 – 90 °0 yields a half ring (no clamping at all), 90 a full ring (hard to slide on). The default has been tested to work well.
Roundness detail8032 – 128Number of segments for circles – more is rounder but a bit slower to compute.

Frequently asked questions

How do I find the right straw diameter?

Print a few variants in 0.1 mm steps and try them with the real straw, or shim a loose holder with a strip of tape, counting the layers you add until it fits.

The ring slides on the can, what helps?

Enter a can diameter slightly smaller than measured, which presses the ring harder against the can. If that is not enough, stick a short strip of double-sided tape to the inside of the ring.

Which material?

PLA works well for the clamp ring because it stays stiff and holds the clamping force. For the tape-on holder the material barely matters, since it never has to carry any spring tension.

Does it fit air duster cans?

Yes. For large cans such as air duster spray or big penetrating-oil canisters, the tape-on holder is the better choice because it does not need to reach all the way around the can.

Origin & license