Sign in with STEVE

steve/metric-threaded-rod

Metric threaded rod (DIN 976-1) and double-ended stud, M2 to M36, any length, with catalogue sizes as presets.

v1.0.0 Latest STEVE MIT 0
Isometric
part.py 48 lines · Python · STEVE runtime · checked
Download
1"""Metric threaded rod (DIN 976-1 form A) and double-ended stud, M2 to M36, any length.
2
3Envelope model for assemblies: a plain cylinder at the nominal thread diameter d (the thread is not modelled).
4One end is on the XY plane at the origin, the rod along +Z; `length` is the overall length.
5"""
6from steve import Model
7
8size = "M8" # Thread size
9length = 100 # mm Length (overall)
10material = "steel" # Material
11
12# DIN 976-1:2016-09 size table (https://fasten.it/en/Norms/Norm/DIN%20976-1): size -> nominal (major) diameter d, mm
13# (Md: d = M-number by the designation, ISO 261 coarse pitch series)
14DIAMETERS = {
15 "M2": 2.0,
16 "M2.5": 2.5,
17 "M3": 3.0,
18 "M4": 4.0,
19 "M5": 5.0,
20 "M6": 6.0,
21 "M8": 8.0,
22 "M10": 10.0,
23 "M12": 12.0,
24 "M14": 14.0,
25 "M16": 16.0,
26 "M20": 20.0,
27 "M24": 24.0,
28 "M30": 30.0,
29 "M36": 36.0,
30}
31# material choice: (STEVE material library id, appearance colour)
32MATERIALS = {
33 "steel": ("steel-generic", "#b4b8bd"), # property class 4.8 / 8.8, zinc plated
34 "stainless-a2": ("stainless-304", "#c9ccd0"), # ISO 3506-1 A2-70
35 "stainless-a4": ("stainless-316", "#c9ccd0"), # ISO 3506-1 A4-70
36 "brass": ("brass", "#c8a44d"),
37}
38
39d = DIAMETERS[size]
40material_id, colour = MATERIALS[material]
41
42model = Model()
43with model.sketch("rod_sketch", on="XY", name="Section") as sk:
44 sk.circle("rod_circle", (0, 0), d / 2)
45model.extrude("rod", "rod_sketch", distance=length, name="Rod")
46model.material(material_id, color=colour)
47result = model.result()
48

Fully threaded metric rod, DIN 976-1 form A, also used for double-ended studs. Envelope geometry for assemblies: a plain cylinder at the nominal thread diameter (ISO 261 coarse series); the thread itself is not modelled. One end is on the XY plane at the origin and the rod runs along +Z; `length` is the overall length.

Metric threaded rod and double-ended stud (DIN 976-1)

Fully threaded metric rod (studding, all-thread), M2 to M36, at any length; the same envelope serves for double-ended studs. Presets cover the common catalogue rods (M8 × 1000, ...) and studs (M6 × 40, ...).

Geometry

Envelope for assemblies: a plain cylinder at the nominal (major) thread diameter d, overall length length; the thread is not modelled. One end is on the XY plane at the origin, the rod along +Z.

Parameters

Parameter Meaning
size Thread size, M2 to M36 (coarse series)
length Overall length, mm
material steel (property class 4.8 / 8.8, zinc plated), stainless-a2, stainless-a4 (ISO 3506-1), brass

Source

DIN 976-1:2016-09, Fasteners — Stud bolts — Part 1: Metric thread: the sizes M2 to M72 with their coarse pitches, read from fasten.it (https://fasten.it/en/Norms/Norm/DIN 976-1); every size of this recipe (M2, M2.5, M3, M4, M5, M6, M8, M10, M12, M14, M16, M20, M24, M30, M36) is listed. Form A (thread over the whole length, thread end to DIN EN ISO 4753) is defined in Bild 1 of DIN 976-1:2002-12, p. 3 (https://1001krep.ru/f/din_976-1.pdf); DIN Media's change note for the 2016 edition lists no change to the forms or sizes. The diameter d of an "M d" thread is its nominal size (ISO 261 designation): d = 2, 2.5, 3, 4, 5, 6, 8, 10, 12, 14, 16, 20, 24, 30, 36 mm.

Preset list: sizes and lengths of the step.parts catalogue (MIT), see library/NOTICE.md.

  1. 1.0.0 Latest
More #fastener
STEVEMIT

steve/hex-head-screw

Hexagon head screw, fully threaded, ISO 4017 / DIN 933, M1.6 to M36, any length, with catalogue sizes as presets.

18 85 sizes 0 1 day ago v2.0.0
STEVEMIT

steve/button-head-screw

Hexagon socket button head screw, ISO 7380-1, M3 to M16, any length, with catalogue sizes as presets.

10 65 sizes 0 1 day ago v2.0.0
STEVEMIT

steve/hex-nut

Hex nut, ISO 4032, M2 to M12.

7 9 variants 0 2 days ago v1.1.0
STEVEMIT

steve/split-lock-washer

Split lock washer (spring washer), DIN 127 form B, M2 to M100.

3 21 sizes 0 1 day ago v1.0.0