Clip-on cup holder: measuring and printing guide
What is a clip-on cup holder?
A clip-on cup holder is a small holder that hooks over the top edge of an upright board and carries a cup in front of it. It needs no screws and no tools: it simply hangs on the edge and stays put through weight and friction. That is exactly how can-holder.scad by just-an-oldsalt, the project this generator ports, works – a hook, a cup and a small gusset in between.
The holder is a classic everyday print. On the 2×4 of a workbench it keeps the drink can away from the sawdust, on a fence slat it holds the bottle at a barbecue, on an office partition it carries the coffee mug, and on a loft bed it holds a glass of water for the night. The generator ports the construction so you can set the board thickness and diameter yourself, and adds a drain hole, a slot for mug handles and a name or logo on the front.
What you need
- A board with a free top edge. That can be a 2×4 stud (38 mm), a furniture panel (18 or 25 mm), a fence slat, the guard-rail board of a bunk bed or an office partition. The only requirement is room above it – the hook reaches around the edge and needs a few centimeters in front and behind.
- A caliper. To measure the board thickness and the diameter of your drink precisely. A tape measure works in a pinch.
- The drink itself. Measure the can, bottle or mug at its widest point and add 1–2 mm so it drops in without jamming.
- Filament. PLA indoors, PETG or ASA outdoors. The holder prints without supports and stands on the bed on its own.
Measuring board and drink
The two numbers that matter are the board thickness and the drink diameter. Both go straight into the generator:
- Board thickness (
board_t): measure where the hook will sit. A finished 2×4 is not 50 × 100 mm but planed to 38 × 89 mm – the 38 mm default is already set. Furniture panels are mostly 18 or 25 mm, fence slats 18–22 mm, partitions up to 60 mm. Add about 0.5 mm so the hook slides on and still grips. - Inner diameter (
can_d): 330 and 500 ml cans are 66 mm, slim 250 ml cans 53 mm, 0.5 l bottles mostly 65 mm and mugs 75–85 mm. Add 1–2 mm for a comfortable fit.
The rest is taste: the cup height decides how deep the drink sits, the leg length how far down the hook reaches, and the hook width how stable it rests on the board. A wide hook holds heavy bottles more securely.
Customizing: hook, handle slot, label
The generator splits its settings into four groups:
- Hook & board – board thickness, wall thickness, leg length and hook width.
- Cup – inner diameter, wall thickness, height, floor thickness, drain hole and gusset. The drain hole is 12 mm by default and lets rain or rinse water out; set it to 0 indoors. The gusset joins hook and cup and gives the cup its stiffness.
- Label & text – a name or logo on the front of the cup, raised, engraved or inlaid flush.
- Quality – the circle resolution: more segments make smoother cups, fewer build faster.
The handle slot is for mugs: enter the width of the handle (typically 20–28 mm) and the generator cuts a vertical slot through the cup wall so the mug fits with its handle. The slot starts above the floor so the mug still sits firmly.
Printing tips
- Print upright. The holder prints exactly as it hangs – the cup floor and both hook legs stand on the bed, so it needs no support material at all.
- Cool the bridge. The top of the hook bridges the board thickness. Up to about 60 mm that works with well-cooled PLA; for thicker boards, slow the bridge speed or use PETG.
- Bed contact. The legs and the cup floor give one large base, so a simple skirt is plenty.
- Outdoors use PETG or ASA. PLA softens in direct sun and sags under full bottles. For the fence, a raised bed or a balcony print PETG or ASA; the drain hole lets rainwater out.
- Colors. A label without its own color is printed in the holder’s filament. For a two-color label, give the name or logo its own color; you get a 3MF with two extruders and, for PrusaSlicer, a single filament change.
Typical sizes at a glance
As a starting point for the first prints:
| Drink | Diameter | Inner diameter |
|---|---|---|
| slim 250 ml can | 53 mm | 55 mm |
| 330 / 500 ml can | 66 mm | 68 mm |
| 0.5 l bottle | ~65 mm | 67 mm |
| tumbler / glass | 70–80 mm | 72–82 mm |
| coffee mug | 75–85 mm | 77–87 mm |
| Board | Thickness |
|---|---|
| 2×4 stud (planed) | 38 mm |
| furniture panel / workbench back | 18–25 mm |
| fence slat / guard rail | 22–28 mm |
| partition / cubicle wall | up to 60 mm |
Every example print fits a 180 × 180 mm bed – even the largest holder for 92 mm bottles stays inside with its wide hook. In the examples you’ll find a ready-made starting point for each combination, from the can holder for a 2×4 to the named mug holder for a desk divider.
Printing in two colors
The label comes in the holder’s filament by default – raised, engraved or inlaid flush. For two colors you simply give the name or logo its own color:
- Raised + own color becomes an inlay: the generator cuts a shallow pocket into the cup wall and lays the letters in as a separate colored part. This is the most robust two-color option, because the label ends flush and nothing protrudes.
- Engraved + own color fills the engraving with the second color – also accomplished with one filament change.
- Without a multi-material setup a single nozzle is fine: one single filament change, at the height the generator reports. PrusaSlicer and Bambu Studio / OrcaSlicer take the extruder assignment straight from the 3MF.
The inlay depth is matched to the cup wall: at least 1 mm of wall always remains, so the cup stays sealed and stiff. With a thin cup wall the depth is limited automatically and the generator tells you.
Why does the holder stay up without screws?
The holder relies on two things: gravity and friction. The weight of the drink pulls the cup down, rotates the hook around the board edge and presses the legs against the board. The fuller and heavier the drink, the more firmly the holder clamps itself. The gusset adds to this: it joins the front leg to the cup and keeps the cup upright instead of letting it buckle at the hook. For heavy bottles, a wider hook helps by spreading the lever force over more board.
That is why the board thickness should fit well. A measurement that is too large lets the hook wobble, while one that is too small jams or will not go on at all. Measure precisely and add half a millimeter rather than leaving one out. On very smooth surfaces – painted metal or glass – you can glue a little felt or silicone to the inside of the back leg; in wood and panels the legs grip on their own.
What happens when you share?
The holder is made entirely in the browser; nothing is uploaded. Your design lives in the link in the address bar – board thickness, cup dimensions, handle slot, label and colors. Save the link or send it and anyone who opens it sees exactly your holder. Only an uploaded font or logo cannot travel in the link and stays local in your browser.
Origin & license
This generator ports can-holder.scad from scad-review by just-an-oldsalt (MIT license): the hook, the gusset and the cup. New additions are the adjustable drain hole, the gusset height, the handle slot and the label with a name or logo, plus the two-color export. The project’s tooling and viewer are not ported.
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.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Hook & board | |||
| Board thickness | 38 mm | 10 – 100 mm | Thickness of the board the holder grips. A 2×4 is 38 mm, furniture panels are usually 18 or 25 mm. |
| Hook wall | 5 mm | 3 – 10 mm | Wall thickness of the hook. |
| Leg length | 45 mm | 25 – 80 mm | How far the legs reach down each face of the board. |
| Hook width | 62 mm | 30 – 120 mm | Width of the hook along the board. |
| Cup | |||
| Inner diameter | 68 mm | 55 – 95 mm | Inner diameter of the cup. Measure the can, bottle or mug and add 1–2 mm. |
| Cup wall | 3 mm | 2 – 6 mm | Wall thickness of the cup. |
| Cup height | 65 mm | 30 – 120 mm | Height of the cup including the floor. |
| Floor thickness | 4 mm | 2 – 8 mm | Thickness of the cup floor. |
| Drain hole | 12 mm | 0 – 30 mm | Diameter of the hole in the floor for rain or rinse water, 0 = none. |
| Support gusset | 0.62 | 0.2 – 1 | Height of the gusset between hook and cup as a fraction of the cup height. |
| Handle slot | 0 mm | 0 – 40 mm | Width of the vertical slot for a mug handle, 0 = none. |
| Slot from | 15 mm | 0 – 80 mm | The slot starts this far above the floor. |
| Quality | |||
| Resolution | 72 | 24 – 160 | Segments per circle: more for smoother cups, fewer for faster builds. |
| Label & text | |||
| Text size | 0 mm | 0 – 40 mm | Height of the capital letters, 0 = fit the window. |
| Logo size | 0.7 | 0.3 – 1 | Height of the logo as a fraction of the window height. |
| Relief height | 0.8 mm | 0.2 – 2 mm | How far raised text stands out, or how deep engraving goes. |
| Inlay depth | 0.6 mm | 0.2 – 1.5 mm | Depth of the pocket for inlaid two-color labels. |
Frequently asked questions
Do I need supports?
No. The holder prints the way it hangs: the cup floor and both hook legs stand on the bed. Only the top of the hook bridges the board; up to about 60 mm that works with well-cooled PLA.
How do I measure the board?
Measure the thickness with a caliper where the holder will hang and add 0.5 mm. A 2×4 is 38 mm thick, furniture panels are usually 18 or 25 mm.
Which diameter fits my can, bottle or mug?
330 and 500 ml cans are 66 mm, slim 250 ml cans 53 mm, 0.5 l bottles mostly 65 mm and mugs 75–85 mm. Add 1–2 mm for the cup.
Can I use it outdoors?
PLA softens in full sun. For the garden, a fence or a balcony print PETG or ASA; the drain hole lets rainwater out.
Can I print the name in a second color?
Yes. Give the name or logo its own color and you get a 3MF with the extruders assigned for PrusaSlicer or Bambu Studio, plus one STL per color.
Origin & license
- scad-review by just-an-oldsalt · MIT · code ported – can-holder.scad: the hook, gusset and cup; drain hole, gusset height, handle slot and label added