Sign in with STEVE

steve/parallel-key

Parallel key, DIN 6885-1 form A, 2 x 2 to 12 x 8, any length, with the common sizes as presets.

v1.0.0 Latest STEVE MIT 0
Isometric
part.py 22 lines · Python · STEVE runtime · checked
Download
1"""Parallel key, form A (both ends rounded), DIN 6885-1: width b, height h, overall length l. Centred on the origin: length
2along X, width along Y, base on the XY plane."""
3from steve import Model
4
5size = "5x5" # Key width x height
6length = 20 # mm Key length
7
8# b x h: (width b, height h). DIN 6885-1:1968, table of key sizes, as listed at
9# https://fasten.it/en/norms/norm/din_6885-1 (shaft ranges there too).
10KEYS = {"2x2": (2, 2), "3x3": (3, 3), "4x4": (4, 4), "5x5": (5, 5), "6x6": (6, 6), "8x7": (8, 7), "10x8": (10, 8), "12x8": (12, 8)}
11
12b, h = KEYS[size]
13if length <= b:
14 raise ValueError(f"A {size} key is longer than its {b} mm width.")
15
16model = Model()
17with model.sketch("outline", on="XY", name="Key") as sk:
18 sk.slot("key", (-(length - b) / 2, 0), ((length - b) / 2, 0), b / 2)
19model.extrude("key", "outline", distance=h, name="Key")
20model.material("steel-generic", color="#a7abb0")
21result = model.result()
22

Parallel key form A (rounded ends) to DIN 6885-1, for a keyed shaft and hub: width b, height h and overall length. Length along X, base on the XY plane. See the README for the source.

Parallel key (DIN 6885-1)

Form A parallel key: both ends rounded, for a keyed shaft and hub.

Geometry

A slot outline of width b and overall length, extruded to height h. Length along X, width along Y, base on the XY plane, centred on the origin.

Source

DIN 6885-1:1968 (withdrawn, still the common designation), key width b and height h, as listed at https://fasten.it/en/norms/norm/din_6885-1.

b × h 2×2 3×3 4×4 5×5 6×6 8×7 10×8 12×8
Shaft over … to 6–8 8–10 10–12 12–17 17–22 22–30 30–38 38–44

No tolerance is stated: the source above lists none.

Preset lengths come from the step.parts catalogue metadata (MIT, library/NOTICE.md).

  1. 1.0.0 Latest
More #key
STEVEMIT

steve/shaft-collar

Shaft collar: DIN 705 A set collar, bores 3 to 20 mm, and one-piece clamp collars.

0 12 sizes 0 2 hours ago v1.0.0
STEVEMIT

steve/gear-rack

Straight gear rack, ISO 53 basic rack, modules 0.5 to 2, any length, with common lengths as presets.

0 38 sizes 0 17 minutes ago v1.0.0
STEVEMIT

steve/miter-gear

Straight miter gear (1:1 bevel, 90 degree) envelope, modules 1 to 3, with catalogue numbers as presets.

0 22 sizes 0 17 minutes ago v1.1.0
STEVEMIT

steve/retaining-ring

External retaining ring (circlip) for shafts, DIN 471 pattern, shafts 10 to 34 mm, measured from published models.

0 13 sizes 0 3 days ago v1.0.0