Sign in with STEVE

steve/socket-head-cap-screw

Socket head cap screw, ISO 4762 / DIN 912, M1.6 to M64, any length, with catalogue sizes as presets.

v2.0.0 Latest STEVE MIT 0
Isometric
part.py 62 lines · Python · STEVE runtime · checked
Download
1"""Socket head cap screw, ISO 4762 (DIN 912), M1.6 to M64, any length.
2
3Envelope model for assemblies: cylindrical head (largest plain-head diameter dk max, height k max), hexagon socket
4(nominal key size s, depth t min) and a plain shank at the nominal thread diameter d (the thread is not modelled).
5The head's bearing face is on the XY plane at the origin, the head above it, the shank along -Z; `length` is the
6nominal length l, measured from under the head.
7"""
8from steve import Model
9
10size = "M3" # Thread size
11length = 10 # mm Nominal length (under the head)
12material = "steel" # Material
13
14# ISO 4762:2004, Table 1 (official preview p. 4, M1.6-M12:
15# https://cdn.standards.iteh.ai/samples/34460/06335046afaf46fb8e84d91a3eda001d/ISO-4762-2004.pdf; all sizes:
16# https://fasten.it/en/Norms/Norm/DIN%20EN%20ISO%204762, DIN EN ISO 4762:2004-06). size: (thread d, head diameter dk max, head height k max, hexagon socket s, socket depth t min)
17DIMENSIONS = {
18 "M1.6": (1.6, 3.0, 1.6, 1.5, 0.7),
19 "M2": (2.0, 3.8, 2.0, 1.5, 1.0),
20 "M2.5": (2.5, 4.5, 2.5, 2.0, 1.1),
21 "M3": (3.0, 5.5, 3.0, 2.5, 1.3),
22 "M4": (4.0, 7.0, 4.0, 3.0, 2.0),
23 "M5": (5.0, 8.5, 5.0, 4.0, 2.5),
24 "M6": (6.0, 10.0, 6.0, 5.0, 3.0),
25 "M8": (8.0, 13.0, 8.0, 6.0, 4.0),
26 "M10": (10.0, 16.0, 10.0, 8.0, 5.0),
27 "M12": (12.0, 18.0, 12.0, 10.0, 6.0),
28 "M14": (14.0, 21.0, 14.0, 12.0, 7.0),
29 "M16": (16.0, 24.0, 16.0, 14.0, 8.0),
30 "M20": (20.0, 30.0, 20.0, 17.0, 10.0),
31 "M24": (24.0, 36.0, 24.0, 19.0, 12.0),
32 "M30": (30.0, 45.0, 30.0, 22.0, 15.5),
33 "M36": (36.0, 54.0, 36.0, 27.0, 19.0),
34 "M42": (42.0, 63.0, 42.0, 32.0, 24.0),
35 "M48": (48.0, 72.0, 48.0, 36.0, 28.0),
36 "M56": (56.0, 84.0, 56.0, 41.0, 34.0),
37 "M64": (64.0, 96.0, 64.0, 46.0, 38.0),
38}
39# material choice: (STEVE material library id, appearance colour)
40MATERIALS = {
41 "steel": ("steel-generic", "#2b2d30"), # property class 8.8 / 10.9 / 12.9, black oxide finish
42 "stainless-a2": ("stainless-304", "#c9ccd0"), # ISO 3506-1 A2-70
43 "stainless-a4": ("stainless-316", "#c9ccd0"), # ISO 3506-1 A4-70 / A4-80
44}
45
46d, dk, k, s, t = DIMENSIONS[size]
47material_id, colour = MATERIALS[material]
48
49model = Model()
50with model.sketch("head_sketch", on="XY", name="Head") as sk:
51 sk.circle("head_circle", (0, 0), dk / 2)
52model.extrude("head", "head_sketch", distance=k, name="Head")
53with model.sketch("shank_sketch", on="XY", name="Shank") as sk:
54 sk.circle("shank_circle", (0, 0), d / 2)
55model.extrude("shank", "shank_sketch", distance=-length, name="Shank")
56model.plane("head_top", on="XY", offset=k, name="Head top")
57with model.sketch("socket_sketch", on="head_top", name="Hexagon socket") as sk:
58 sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False)
59model.extrude("socket", "socket_sketch", distance=-t, op="cut", name="Socket")
60model.material(material_id, color=colour)
61result = model.result()
62

ISO 4762 (DIN 912) hexagon socket head cap screw. Envelope geometry for assemblies: head (dk max, k max), hexagon socket (s, t min) and a plain shank at the nominal thread diameter; the thread itself is not modelled. The head's bearing face is on the XY plane at the origin and the shank points along -Z; `length` is the nominal length under the head. Dimensions from ISO 4762:2004 Table 1 (see the README).

Socket head cap screw (ISO 4762 / DIN 912)

Hexagon socket head cap screw, metric coarse thread, M1.6 to M64, at any length. Presets cover the common catalogue sizes (M3 × 10, M5 × 20, ...).

Geometry

Envelope for assemblies and clearance checks:

  • cylindrical head, diameter dk max (plain head), height k max;
  • hexagon socket, key size s (nominal), depth t min, flat bottom;
  • plain shank at the nominal thread diameter d, length l (length); the thread is not modelled.

The head's bearing face is on the XY plane at the origin, the head above it, the shank along -Z.

Parameters

Parameter Meaning
size Thread size, M1.6 to M64
length Nominal length l under the head, mm
material steel (property class 8.8 to 12.9, black oxide), stainless-a2, stainless-a4 (ISO 3506-1)

Source

ISO 4762:2004, Hexagon socket head cap screws, Table 1 (dimensions): d, dk max (plain head), k max, s (nominal hexagon socket size), t min. M1.6 to M12 read from the official preview, p. 4 (https://cdn.standards.iteh.ai/samples/34460/06335046afaf46fb8e84d91a3eda001d/ISO-4762-2004.pdf); every size from fasten.it's DIN EN ISO 4762:2004-06 ("reproduced by permission of DIN", https://fasten.it/en/Norms/Norm/DIN EN ISO 4762); M14 to M64 also agree with ISO 4762:1997, Table 1, pp. 6-7 (https://cdn.standards.iteh.ai/samples/24643/ff479778e7af4f3eb742ad5ca38881f2/ISO-4762-1997.pdf). ISO 4762:2004 is the current edition. DIN 912 sizes are the same for these columns.

Size dk k s t
M1.6 3.0 1.6 1.5 0.7
M2 3.8 2.0 1.5 1.0
M2.5 4.5 2.5 2.0 1.1
M3 5.5 3.0 2.5 1.3
M4 7.0 4.0 3.0 2.0
M5 8.5 5.0 4.0 2.5
M6 10.0 6.0 5.0 3.0
M8 13.0 8.0 6.0 4.0
M10 16.0 10.0 8.0 5.0
M12 18.0 12.0 10.0 6.0
M14 21.0 14.0 12.0 7.0
M16 24.0 16.0 14.0 8.0
M20 30.0 20.0 17.0 10.0
M24 36.0 24.0 19.0 12.0
M30 45.0 30.0 22.0 15.5
M36 54.0 36.0 27.0 19.0
M42 63.0 42.0 32.0 24.0
M48 72.0 48.0 36.0 28.0
M56 84.0 56.0 41.0 34.0
M64 96.0 64.0 46.0 38.0

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

  1. 2.0.0 Latest Compare with 1.1.0
  2. 1.1.0 Compare with 1.0.0

    Materials and finishes: each part is made of its standard's engineering material, with its usual finish.

  3. 1.0.0
More #fastener
STEVEMIT

steve/low-head-socket-cap-screw

Low head socket cap screw, DIN 7984, M3 to M12, any length, with catalogue sizes as presets.

0 60 sizes 0 1 day ago v1.0.0
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/countersunk-screw

Hexagon socket countersunk head screw, ISO 10642 / DIN 7991, M3 to M12, any length, with catalogue sizes as presets.

0 62 sizes 0 1 day ago v2.0.0