Sign in with STEVE

steve/socket-head-cap-screw

Socket head cap screw, ISO 4762 / DIN 912, M2 to M12, any length.

v1.1.0 STEVE MIT 0
Isometric
part.py 50 lines · Python · STEVE runtime · checked
Download
1"""ISO 4762 (DIN 912) socket head cap screw. Envelope: head, hex socket and plain shank (no modelled thread).
2The head sits on the XY plane at the origin; the shank points down -Z. `length` is measured under the head.
3
4Material: property class 12.9 alloy steel, quenched and tempered (34CrNiMo6 from the material library), black oxide."""
5from steve import Model
6
7size = "M3" # Thread size
8length = 10 # mm Length under the head
9
10# size: (head diameter dk, head height k, hex key s)
11HEADS = {
12 'M2': (3.8, 2.0, 1.5),
13 'M2.5': (4.5, 2.5, 2.0),
14 'M3': (5.5, 3.0, 2.5),
15 'M4': (7.0, 4.0, 3.0),
16 'M5': (8.5, 5.0, 4.0),
17 'M6': (10.0, 6.0, 5.0),
18 'M8': (13.0, 8.0, 6.0),
19 'M10': (16.0, 10.0, 8.0),
20 'M12': (18.0, 12.0, 10.0),
21}
22NOMINAL = {
23 'M2': 2.0,
24 'M2.5': 2.5,
25 'M3': 3.0,
26 'M4': 4.0,
27 'M5': 5.0,
28 'M6': 6.0,
29 'M8': 8.0,
30 'M10': 10.0,
31 'M12': 12.0,
32}
33dk, k, s = HEADS[size]
34d = NOMINAL[size]
35
36model = Model()
37with model.sketch("head_sketch", on="XY", name="Head") as sk:
38 sk.circle("head", (0, 0), dk / 2)
39model.extrude("head", "head_sketch", distance=k)
40with model.sketch("shank_sketch", on="XY", name="Shank") as sk:
41 sk.circle("shank", (0, 0), d / 2)
42model.extrude("shank", "shank_sketch", distance=-length)
43model.plane("head_top", on="XY", offset=k, name="Head top")
44with model.sketch("socket_sketch", on="head_top", name="Hex socket") as sk:
45 sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False)
46model.extrude("socket", "socket_sketch", distance=-0.55 * k, op="cut")
47model.material("steel-34crnimo6") # class 12.9 alloy steel
48model.appearance(color="#2e3034", metalness=0.75, roughness=0.38) # black oxide finish
49result = model.result()
50

ISO 4762 (DIN 912) socket head cap screw. Envelope: head, hex socket and plain shank (no modelled thread). The head sits on the XY plane at the origin; the shank points down -Z. `length` is measured under the head. Material: property class 12.9 alloy steel, quenched and tempered (34CrNiMo6 from the material library), black oxide. Dimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread.

  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