Sign in with STEVE

steve/socket-head-cap-screw

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

v1.0.0 STEVE MIT 0
Isometric
part.py 46 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."""
3from steve import Model
4
5size = "M3" # Thread size
6length = 10 # mm Length under the head
7
8# size: (head diameter dk, head height k, hex key s)
9HEADS = {
10 'M2': (3.8, 2.0, 1.5),
11 'M2.5': (4.5, 2.5, 2.0),
12 'M3': (5.5, 3.0, 2.5),
13 'M4': (7.0, 4.0, 3.0),
14 'M5': (8.5, 5.0, 4.0),
15 'M6': (10.0, 6.0, 5.0),
16 'M8': (13.0, 8.0, 6.0),
17 'M10': (16.0, 10.0, 8.0),
18 'M12': (18.0, 12.0, 10.0),
19}
20NOMINAL = {
21 'M2': 2.0,
22 'M2.5': 2.5,
23 'M3': 3.0,
24 'M4': 4.0,
25 'M5': 5.0,
26 'M6': 6.0,
27 'M8': 8.0,
28 'M10': 10.0,
29 'M12': 12.0,
30}
31dk, k, s = HEADS[size]
32d = NOMINAL[size]
33
34model = Model()
35with model.sketch("head_sketch", on="XY", name="Head") as sk:
36 sk.circle("head", (0, 0), dk / 2)
37model.extrude("head", "head_sketch", distance=k)
38with model.sketch("shank_sketch", on="XY", name="Shank") as sk:
39 sk.circle("shank", (0, 0), d / 2)
40model.extrude("shank", "shank_sketch", distance=-length)
41model.plane("head_top", on="XY", offset=k, name="Head top")
42with model.sketch("socket_sketch", on="head_top", name="Hex socket") as sk:
43 sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False)
44model.extrude("socket", "socket_sketch", distance=-0.55 * k, op="cut")
45result = model.result()
46

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. 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