3D Printing Generator
DeutschEnglish

Shim wedge & sleeve

Locking wedges, sleeve shims and window wedges to print

Shims you print to the exact size

A shim fills a gap, and gaps are never standard. This generator makes three kinds of printable shims: locking wedges that stack into a block you can adjust in seven height steps, sleeve shims that fill the space around a tube, a handlebar or an axle, and a window wedge that holds a tilted window at a fixed angle. Pick the kind, enter the sizes you measured and download a file that prints without supports.

Browse the examples to see the range: the locking wedge pair for 17–23 mm, the handlebar shim from 19 to 24 mm or the window wedge for a 6° tilt.

How the generator works

Everything runs in your browser. Nothing is uploaded, and the design is stored in the link you get from “Share”. The first choice is “Shim”: “Locking wedges”, “Sleeve” or “Window wedge”. The editor then shows only the sections that belong to that kind, with hints under the fields that tell you the thin and thick end, the slope, the wall thickness or the window angle. The shim is one part in one color, so any printer works. Download it as STL or 3MF.

Locking wedges

Two wedges lying against each other form a block with parallel faces. Slide one wedge along the other and the block gets thicker or thinner. That is the old carpenter’s trick for leveling a workbench or a cabinet, and the locking version stops the slide from creeping back.

Heights and size

“Middle height” (4–50 mm, default 20) is the height of both wedges stacked at the middle position. “Height step” (0.5–2 mm, default 1) is the change from one lock position to the next. Six steps make the full range, so the defaults give seven heights: 17, 18, 19, 20, 21, 22 and 23 mm. Each wedge is then 7 mm thin at one end and 13 mm thick at the other, with a slope of about 1.9°, and the slide moves 30 mm per height step. The editor shows these numbers under the fields.

“Length” (40–180 mm, default 180) runs from the thin to the thick end. “Width” (10–180 mm, default 60) is the width across the slope. Both wedges print on their side, so the width is also the print height. The wide wedges for 24–36 mm use a 2 mm step, the fine wedges a 0.5 mm step for 18.5–21.5 mm.

“Print” chooses what comes out: “Pair” (both wedges on one plate), “Base” (the lower wedge only), “Slide” (the upper wedge only) or “Coupons”. The single parts are handy for spares, for example the upper slide. Print both from the same values and they fit together.

The stake lock

With “Stake lock” on (the default), each wedge gets a row of seven diamond-shaped holes along the flat outer face. The two rows have different spacing, like the scales of a vernier caliper, so at every height exactly one pair of holes lines up. Push a U-shaped garden stake through that pair, one leg in each wedge, and the stack cannot slide.

The holes are diamonds, squares standing on a corner, so every roof of the hole stays at 45° and the hole prints without supports. The settings:

  • “Wire diameter” (2–5 mm, default 3) is the stake wire.
  • “Wire clearance” (0.1–0.8 mm, default 0.3) is how much bigger the hole is than the wire.
  • “Hole pitch” (7–15 mm, default 9.5) is the spacing in the lower base; the slide’s spacing follows from it.
  • “Hole depth” (2.5–5 mm, default 3) is the distance from the flat outer face to the hole center.
  • “Hole entry length” and “Hole entry flare” widen both ends of each hole so the wire finds its way in and elephant foot does not block it.
  • “Row shift” (−40 to 40 mm) moves the lower row from its automatic, centered position. Use the same value for both wedges.

If a combination does not work, the generator warns you, for example when the holes leave less than 0.4 mm of wall or when a hole comes too close to the label pocket.

Dovetail sockets and the label pocket

“Dovetail sockets” (“None”, “One” or “Two”, default two) cuts dovetail-shaped grooves across the flat outer face. They let you slide a wedge onto a dovetail rail, for example on a mounting plate. “Socket width” (4–6 mm, default 5), “Socket opening” (2.4–5 mm, default 3.2) and “Socket depth” (1.5–4 mm, default 2.8) set the profile, and “Entry length” and “Entry flare” widen the ends.

“Label pocket” adds a rounded recess at the thick end, up to 26 × 7 mm, for an adhesive label with the part number or height. “Pocket depth” is 0.8–1.2 mm.

Test coupons first

Tolerances differ between printers and filaments. “Coupons” prints small test pieces that take a few minutes: dovetail sockets and rails in three widths, wire holes with three clearances, or the seven stake-spacing coupons. Choose with “Coupons” (“All”, “Dovetail”, “Wire”, “Spacing”). The wire hole coupons for 4 mm wire are a good start if your stake is thicker than 3 mm. Print them before the wedges, push your stake through the three holes and pick the clearance that slides in without play. All coupons together fit on one plate.

Sleeve shims

A sleeve shim fills the gap between a tube and a clamp or bore that is too wide. The classic case: a brake lever made for a 24 mm bar on a 19 mm handlebar. Choose “Sleeve” and enter the sizes:

  • “Inner diameter” (2–150 mm, default 19) is the part inside the sleeve.
  • “Outer diameter” (3–160 mm, default 24) is the clamp or bore. The wall is half the difference, 2.5 mm by default.
  • “Length” (2–150 mm, default 20) is the sleeve without its lip.
  • “Slot angle” (0–300°, default 30) opens a slot so the sleeve can clip on. 0 makes a closed ring, about 190° a half shell.
  • “Lip height” (0–20 mm, default 2) and “Lip width” (0.5–15 mm, default 2) add a collar at the bottom that stops the sleeve.

Measure with calipers in two places and enter what you measured. Printed rings come out slightly tight, so try the measured value first and add 0.1–0.2 mm if it is too snug. A slotted sleeve springs open, so it forgives small errors.

UseInnerOuterExample
Brake lever on a bar19 mm24 mmHandlebar shim
1 inch bar in a stem25.4 mm31.8 mmStem shim
Tube in a clamp30 mm36 mmHalf-shell bushing
Axle in a bore8 mm12 mmFlanged bushing

The half shell has a 190° slot, so print two and they enclose the tube. The flanged bushing is a closed ring with a 1.5 mm lip. The lip prints at the bottom, so the sleeve stands on a wide base and needs no support. A lip wider than 180 mm in diameter is trimmed to fit the bed.

Window wedges

A tilted window sash swings back in a gust. A wedge between sash and frame holds it at one angle. Choose “Window wedge” and enter “Sash height” (300–3000 mm, default 1250), the height from the hinge to where you measure, and “Opening” (10–400 mm, default 130), how far the sash stands open at that height. The generator turns them into the window angle, rounded to whole degrees and at least 1°. The defaults give 6°.

“Wedge thickness” (22–40 mm, default 25) is the thick end; “Wedge width” (10–60 mm, default 30) is the width of the wedge across the gap and its height on the print bed. The wedge is a triangle with the window’s angle at its tip, hollowed out to a 3 mm rim with arc-shaped ribs every 15 mm and 1 mm 45° edges top and bottom, which saves material and keeps it printable. The tip is rounded with a 10 mm radius, so a 6° wedge is only about 57 mm long. Very small angles or thick wedges would not fit on the bed: they are cut off at 178 mm and the editor tells you so.

The 6° wedge and the 10° wedge for a wide tilt are two starting points. The wedge only holds the sash in place. It is not a lock and not burglary protection.

Printing the shims

The numbers below come from a PrusaSlicer slice with the Prusa MINI, 0.20 mm SPEED profile and Prusament PLA. All 14 examples print without automatic supports.

PartFilamentTime
Locking wedge pair, 180 × 60 mm101 g3 h 58 min
Wide wedges 24–36 mm, 170 × 90 mm180 g7 h 16 min
All fit coupons31 g1 h 55 min
Handlebar shim 19 to 24 mm3.7 g22 min
Window wedge 6°14 g45 min

Wedges print on their side. The load then acts within the layers, not between them, so layer adhesion is not the weak point. Use 3–4 perimeters and 40–60 % infill for wedges that carry weight. Sleeves stand on their lip, the window wedge lies flat.

PLA is fine indoors. For a warm car, a sunny window sill or anything outdoors, choose PETG or ASA, because PLA softens at about 55 °C and creeps under steady load.

Load and safety

Printed shims are not rated for load. We have not test-printed these designs under load, and the numbers on this page are slicer estimates. If a wedge carries a cabinet, a machine or anything that could fall, check the stability yourself: test with a safe margin, expect creep over weeks, and keep people away from what could tip. A sleeve in a stem, a seat clamp or a brake lever is a safety part. A cracked shim can let go while you ride, so use printed ones only where failure is harmless.

Origin and license

The locking wedges, with the diamond holes for the stake, the dovetail sockets, the label pocket and the coupons, are ported from Locking Wedge by Sandor Kunyik (git64bit), released into the public domain under the Unlicense. The sleeve is ported from Parametric Circular Shim / Shell / Sleeve / Bushing by transmit-receive (CC0 1.0). The window wedge is ported from Window wedge by Ulrich Bär (Jack, CC0 1.0), which uses helper shapes from his UB.scad library (CC0 1.0).

New here are the limits to a 180 mm bed, the automatic centering of the hole row, warnings instead of failed asserts and the upright print orientation of the wire coupons. All texts and code of this site are described on the license page.

Ready to print? Open the generator, start with the locking wedge pair, or make a grip for your tools with the hex key handle.

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
Wedge
Length180 mm40 – 180 mmLength of each wedge from the thin to the thick end.
Width60 mm10 – 180 mmWidth of the wedge across the slope. The wedges print on their side, so this is the print height.
Middle height20 mm4 – 50 mmHeight of both wedges stacked at the middle lock position. The thin end of each wedge is half of this minus three steps.
Height step1 mm0.5 – 2 mmHeight change from one lock position to the next. Six steps make the height range of the pair.
Dovetail sockets
Socket width5 mm4 – 6 mmWidth of the dovetail socket inside, at its widest point.
Socket opening3.2 mm2.4 – 5 mmWidth of the dovetail socket at the outer face. It must be narrower than the socket.
Socket depth2.8 mm1.5 – 4 mmHow deep the dovetail socket goes into the wedge.
Entry length3 mm1 – 8 mmLength of the flared entry at both ends of each socket.
Entry flare0.35 mm0.1 – 1 mmHow much wider the socket is at its ends, so elephant foot does not block the rail.
Stake lock
Row shift0 mm-40 – 40 mmMoves the lower row of holes from its automatic, centered position. Use the same value for both wedges.
Hole pitch9.5 mm7 – 15 mmSpacing of the holes in the lower base. The holes in the upper slide follow from it.
Hole depth3 mm2.5 – 5 mmDistance from the flat outer face to the center of the holes.
Wire diameter3 mm2 – 5 mmDiameter of the garden stake wire.
Wire clearance0.3 mm0.1 – 0.8 mmExtra size of the diamond holes over the wire diameter.
Hole entry length3 mm1 – 8 mmLength of the flared entry at both ends of each hole.
Hole entry flare0.3 mm0.1 – 0.8 mmHow much wider the hole is at its ends, so the wire finds its way in.
Label pocket
Pocket depth1 mm0.8 – 1.2 mmDepth of the label pocket.
Sleeve shim
Length20 mm2 – 150 mmLength of the sleeve without the lip.
Inner diameter19 mm2 – 150 mmDiameter of the part inside the sleeve, for example a handlebar.
Outer diameter24 mm3 – 160 mmDiameter of the clamp or bore the sleeve fits into. The wall is half the difference.
Slot angle30 °0 – 300 °Width of the slot as an angle, so the sleeve can be clipped on. 0 makes a closed ring, about 190° makes a half shell (print two).
Lip height2 mm0 – 20 mmHeight of the collar at the bottom that stops the sleeve. 0 for no lip.
Lip width2 mm0.5 – 15 mmHow far the lip stands out over the sleeve.
Window wedge
Sash height1250 mm300 – 3000 mmHeight of the window sash from the hinge to where you measure the opening.
Opening130 mm10 – 400 mmHow far the sash stands open, measured at the sash height above.
Wedge thickness25 mm22 – 40 mmThickness of the wedge at its thick end.
Wedge width30 mm10 – 60 mmWidth of the wedge, which is its height on the print bed.

Frequently asked questions

Do these shims need supports?

No. A PrusaSlicer check of all 14 examples (Prusa MINI, 0.20 mm SPEED, Prusament PLA) found no need for automatic supports. The wedges print on their side, the sleeves stand on their lip and the window wedge lies flat.

Can I level a machine or a cabinet with printed wedges?

Only with care. Printed shims are not rated for load, PLA creeps under constant pressure, and we have not test-printed these wedges under load. Check the stability yourself, use PETG or ASA with thick walls, and never rely on them where a slip could hurt someone.

How do the seven lock positions work?

Each wedge has a row of seven diamond holes, and the two rows have different spacing. At every height exactly one pair of holes lines up, and a U-shaped garden stake pushed through that pair locks the stack.

How do I find the right inner diameter for a sleeve?

Measure the tube or bar with calipers in two directions and enter the average as “Inner diameter”. Print a short test sleeve first: a closed ring is a tight press fit, while the default 30° slot lets it flex and clip on.

Which window wedge angle do I need?

Enter the sash height from the hinge and the opening measured at that height. The generator takes the arctangent and rounds to whole degrees: a 1250 mm sash that stands 130 mm open gives 6°.

Is anything uploaded?

No. The generator runs in your browser, and the whole design lives in the share link. The STL or 3MF is built on your computer.

Origin & license

  • Locking Wedge by Sandor Kunyik (git64bit) · Unlicense · code ported – Ported from lower_base.scad, upper_slide.scad and coupons.scad: lower base and upper slide with diamond holes for the garden stake in seven lock positions, dovetail sockets with flared entries, label pocket and all fit coupons. Adapted: length up to 180 mm, hole row centered automatically, asserts as warnings, wire coupons printed upright.
  • Parametric Circular Shim / Shell / Sleeve / Bushing - Bike handlebar brake handle etc. - OpenSCAD by transmit-receive · CC0 1.0 · code ported – Ported from Circular_shim_parametric.scad: sleeve with slot angle and lip. Adapted: lip at most 180 mm wide.
  • Window wedge by Ulrich Bär (Jack) · CC0 1.0 · code ported – Ported from 22-142WindowWedge.scad: wedge with the opening angle from sash height and opening, 3 mm rim, arc ribs and 45° edges. Adapted: thickness and width as parameters, long wedges cut to 178 mm, version digits left out.
  • UB.scad by Ulrich Bär (UBaer21) · CC0 1.0 · helper code ported – helper shapes Tri, Rand, Kreis, Rund and Roof of the window wedge