Sign in with STEVE

steve/hex-head-screw

Hex head screw, ISO 4017 / DIN 933, M3 to M12, any length.

v1.1.0 STEVE MIT 18
Isometric
part.py 42 lines · Python · STEVE runtime · checked
Download
1"""ISO 4017 (DIN 933) hex head screw, fully threaded. Envelope: hex head and plain shank.
2The head's bearing face is on the XY plane at the origin; the shank points down -Z.
3
4Material: property class 8.8 medium-carbon steel, quenched and tempered (C45), zinc plated."""
5from steve import Model
6
7size = "M6" # Thread size
8length = 20 # mm Length under the head
9
10# size: (across flats s, head height k)
11HEADS = {
12 'M3': (5.5, 2.0),
13 'M4': (7.0, 2.8),
14 'M5': (8.0, 3.5),
15 'M6': (10.0, 4.0),
16 'M8': (13.0, 5.3),
17 'M10': (16.0, 6.4),
18 'M12': (18.0, 7.5),
19}
20NOMINAL = {
21 'M3': 3.0,
22 'M4': 4.0,
23 'M5': 5.0,
24 'M6': 6.0,
25 'M8': 8.0,
26 'M10': 10.0,
27 'M12': 12.0,
28}
29s, k = HEADS[size]
30d = NOMINAL[size]
31
32model = Model()
33with model.sketch("head_sketch", on="XY", name="Head") as sk:
34 sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False)
35model.extrude("head", "head_sketch", distance=k)
36with model.sketch("shank_sketch", on="XY", name="Shank") as sk:
37 sk.circle("shank", (0, 0), d / 2)
38model.extrude("shank", "shank_sketch", distance=-length)
39model.material("steel-1c45") # class 8.8 steel
40model.appearance(color="#c9d1d9", metalness=1.0, roughness=0.3) # clear zinc plating
41result = model.result()
42

ISO 4017 (DIN 933) hex head screw, fully threaded. Envelope: hex head and plain shank. The head's bearing face is on the XY plane at the origin; the shank points down -Z. Material: property class 8.8 medium-carbon steel, quenched and tempered (C45), zinc plated. 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/inch-hex-head-screw

Hex head screw, inch: ASME B18.2.1 hex cap screws 1/4 to 1/2 in, B18.6.3 hex machine screws #2 to #10, any length.

0 107 sizes 0 1 day ago v1.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
STEVEMIT

steve/pan-head-screw

Pan head screw with cross recess, ISO 7045, M2 to M8, any length.

0 7 variants 0 2 days ago v1.1.0