Sign in with STEVE

Compare versions

4 files changed, +567 −41

part.py +43 −32
@@ -1,46 +1,57 @@
1"""ISO 7380 button head socket screw. Envelope: domed head (revolved profile), hex socket, plain shank.
2The head's flat side is on the XY plane at the origin; the shank points down -Z.
1"""Hexagon socket button head screw, ISO 7380-1, M3 to M16, any length.
32
4Material: property class 10.9 alloy steel, quenched and tempered (34CrNiMo6 from the material library), black oxide."""
3Envelope model for assemblies: domed head (a spherical cap of diameter dk max and height k max), hexagon socket (key
4size 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"""
8import math
9
510from steve import Model
611
7size = "M4" # Thread size
8length = 10 # mm Length under the head
12size = "M5" # Thread size
13length = 10 # mm Nominal length (under the head)
14material = "steel" # Material
915
10# size: (head diameter dk, head height k, hex key s)
11HEADS = {
12 'M3': (5.7, 1.65, 2.0),
13 'M4': (7.6, 2.2, 2.5),
14 'M5': (9.5, 2.75, 3.0),
15 'M6': (10.5, 3.3, 4.0),
16 'M8': (14.0, 4.4, 5.0),
17 'M10': (17.5, 5.5, 6.0),
18 'M12': (21.0, 6.6, 8.0),
16# ISO 7380-1:2011, Table 1 (official preview p. 3:
17# https://cdn.standards.iteh.ai/samples/53671/84df01c5fcce4a91896ac3b0c55ca128/ISO-7380-1-2011.pdf); the same values in
18# ISO 7380-1:2022, Table 1 (https://cdn.standards.iteh.ai/samples/78699/a175805085534f98983d6c8aa583a5b0/ISO-7380-1-2022.pdf). size: (thread d, head diameter dk max, head height k max, hexagon socket s, socket depth t min)
19DIMENSIONS = {
20 "M3": (3.0, 5.7, 1.65, 2.0, 1.04),
21 "M4": (4.0, 7.6, 2.2, 2.5, 1.3),
22 "M5": (5.0, 9.5, 2.75, 3.0, 1.56),
23 "M6": (6.0, 10.5, 3.3, 4.0, 2.08),
24 "M8": (8.0, 14.0, 4.4, 5.0, 2.6),
25 "M10": (10.0, 17.5, 5.5, 6.0, 3.12),
26 "M12": (12.0, 21.0, 6.6, 8.0, 4.16),
27 "M16": (16.0, 28.0, 8.8, 10.0, 5.2),
1928}
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,
29# material choice: (STEVE material library id, appearance colour)
30MATERIALS = {
31 "steel": ("steel-generic", "#2b2d30"), # property class 10.9 / 12.9, black oxide finish
32 "stainless-a2": ("stainless-304", "#c9ccd0"), # ISO 3506-1 A2-70
33 "stainless-a4": ("stainless-316", "#c9ccd0"), # ISO 3506-1 A4-70 / A4-80
2834}
29dk, k, s = HEADS[size]
30d = NOMINAL[size]
35
36d, dk, k, s, t = DIMENSIONS[size]
37material_id, colour = MATERIALS[material]
38r = dk / 2
39dome_r = (r * r + k * k) / (2 * k) # radius of the spherical cap through the head's rim and top
40start = math.degrees(math.atan2(dome_r - k, r))
3141
3242model = Model()
3343with model.sketch("head_profile", on="XZ", name="Head profile") as sk:
34 sk.polyline("outline", [(0, 0), (dk / 2, 0), (dk / 2, 0.25 * k), (0.42 * dk, 0.7 * k), (0.3 * dk, 0.92 * k), (0, k)])
35model.revolve("head", "head_profile", axis="Z")
44 sk.line("base", (0, 0), (r, 0))
45 sk.arc("dome", (0, k - dome_r), dome_r, start, 90)
46 sk.line("axis", (0, k), (0, 0))
47model.revolve("head", "head_profile", axis="Z", name="Head")
3648with 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)
49 sk.circle("shank_circle", (0, 0), d / 2)
50model.extrude("shank", "shank_sketch", distance=-length, name="Shank")
3951model.plane("head_top", on="XY", offset=k, name="Head top")
40with model.sketch("socket_sketch", on="head_top", name="Hex socket") as sk:
52with model.sketch("socket_sketch", on="head_top", name="Hexagon socket") as sk:
4153 sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False)
42model.extrude("socket", "socket_sketch", distance=-0.6 * k, op="cut")
43model.material("steel-34crnimo6") # class 10.9 alloy steel
44model.appearance(color="#2e3034", metalness=0.75, roughness=0.38) # black oxide finish
54model.extrude("socket", "socket_sketch", distance=-t, op="cut", name="Socket")
55model.material(material_id, color=colour)
4556result = model.result()
4657
pypart.toml +20 −9
@@ -1,24 +1,35 @@
11name = "steve/button-head-screw"
2version = "1.1.0"
2version = "2.0.0"
33runtime = "steve"
44license = "MIT"
5summary = "Button head socket screw, ISO 7380, M3 to M12, any length."
6description = "ISO 7380 button head socket screw. Envelope: domed head (revolved profile), hex socket, plain shank.\nThe head's flat side is on the XY plane at the origin; the shank points down -Z.\n\nMaterial: property class 10.9 alloy steel, quenched and tempered (34CrNiMo6 from the material library), black oxide.\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread."
7tags = ["fastener", "screw", "iso-7380", "metric"]
8changes = "Materials and finishes: each part is made of its standard's engineering material, with its usual finish."
5summary = "Hexagon socket button head screw, ISO 7380-1, M3 to M16, any length, with catalogue sizes as presets."
6description = """ISO 7380-1 hexagon socket button head screw. Envelope geometry for assemblies: domed head (dk max, \
7k max), hexagon socket (s, t min) and a plain shank at the nominal thread diameter; the thread itself is not modelled.
8
9The head's bearing face is on the XY plane at the origin and the shank points along -Z; `length` is the nominal \
10length under the head. Dimensions from ISO 7380-1:2011 Table 1 (see the README)."""
11tags = ["fastener", "screw", "button-head", "iso-7380", "metric"]
912
1013[parameters.size]
1114type = "choice"
12default = "M4"
13choices = ["M3", "M4", "M5", "M6", "M8", "M10", "M12"]
15default = "M5"
16choices = ["M3", "M4", "M5", "M6", "M8", "M10", "M12", "M16"]
1417label = "Thread size"
1518
1619[parameters.length]
1720type = "number"
1821default = 10
19min = 3
20max = 120
22min = 2
23max = 200
2124step = 1
2225unit = "mm"
2326label = "Length"
27description = "Nominal length l, from under the head to the end of the shank."
2428
29[parameters.material]
30type = "choice"
31default = "steel"
32choices = ["steel", "stainless-a2", "stainless-a4"]
33label = "Material"
34description = "steel: property class 10.9 / 12.9, black oxide; stainless-a2 / stainless-a4: ISO 3506-1 A2 / A4."
35
presets.toml added in 2.0.0
@@ -1,0 +1,457 @@
1# Presets of this part (factory/PRESETS.md). Written by factory/gen.py.
2
3[[presets]]
4id = "M3x4"
5title = "M3 × 4"
6params = { size = "M3", length = 4 }
7aliases = ["ISO 7380 M3x4", "ISO 7380-1 M3x4", "BHCS M3x4", "button head screw M3x4", "M3 x 4 mm"]
8standard = "ISO 7380-1"
9
10[[presets]]
11id = "M3x5"
12title = "M3 × 5"
13params = { size = "M3", length = 5 }
14aliases = ["ISO 7380 M3x5", "ISO 7380-1 M3x5", "BHCS M3x5", "button head screw M3x5", "M3 x 5 mm"]
15standard = "ISO 7380-1"
16
17[[presets]]
18id = "M3x6"
19title = "M3 × 6"
20params = { size = "M3", length = 6 }
21aliases = ["ISO 7380 M3x6", "ISO 7380-1 M3x6", "BHCS M3x6", "button head screw M3x6", "M3 x 6 mm"]
22standard = "ISO 7380-1"
23
24[[presets]]
25id = "M3x8"
26title = "M3 × 8"
27params = { size = "M3", length = 8 }
28aliases = ["ISO 7380 M3x8", "ISO 7380-1 M3x8", "BHCS M3x8", "button head screw M3x8", "M3 x 8 mm"]
29standard = "ISO 7380-1"
30
31[[presets]]
32id = "M3x10"
33title = "M3 × 10"
34params = { size = "M3", length = 10 }
35aliases = ["ISO 7380 M3x10", "ISO 7380-1 M3x10", "BHCS M3x10", "button head screw M3x10", "M3 x 10 mm"]
36standard = "ISO 7380-1"
37
38[[presets]]
39id = "M3x12"
40title = "M3 × 12"
41params = { size = "M3", length = 12 }
42aliases = ["ISO 7380 M3x12", "ISO 7380-1 M3x12", "BHCS M3x12", "button head screw M3x12", "M3 x 12 mm"]
43standard = "ISO 7380-1"
44
45[[presets]]
46id = "M3x16"
47title = "M3 × 16"
48params = { size = "M3", length = 16 }
49aliases = ["ISO 7380 M3x16", "ISO 7380-1 M3x16", "BHCS M3x16", "button head screw M3x16", "M3 x 16 mm"]
50standard = "ISO 7380-1"
51
52[[presets]]
53id = "M3x20"
54title = "M3 × 20"
55params = { size = "M3", length = 20 }
56aliases = ["ISO 7380 M3x20", "ISO 7380-1 M3x20", "BHCS M3x20", "button head screw M3x20", "M3 x 20 mm"]
57standard = "ISO 7380-1"
58
59[[presets]]
60id = "M3x25"
61title = "M3 × 25"
62params = { size = "M3", length = 25 }
63aliases = ["ISO 7380 M3x25", "ISO 7380-1 M3x25", "BHCS M3x25", "button head screw M3x25", "M3 x 25 mm"]
64standard = "ISO 7380-1"
65
66[[presets]]
67id = "M3x30"
68title = "M3 × 30"
69params = { size = "M3", length = 30 }
70aliases = ["ISO 7380 M3x30", "ISO 7380-1 M3x30", "BHCS M3x30", "button head screw M3x30", "M3 x 30 mm"]
71standard = "ISO 7380-1"
72
73[[presets]]
74id = "M3x35"
75title = "M3 × 35"
76params = { size = "M3", length = 35 }
77aliases = ["ISO 7380 M3x35", "ISO 7380-1 M3x35", "BHCS M3x35", "button head screw M3x35", "M3 x 35 mm"]
78standard = "ISO 7380-1"
79
80[[presets]]
81id = "M3x40"
82title = "M3 × 40"
83params = { size = "M3", length = 40 }
84aliases = ["ISO 7380 M3x40", "ISO 7380-1 M3x40", "BHCS M3x40", "button head screw M3x40", "M3 x 40 mm"]
85standard = "ISO 7380-1"
86
87[[presets]]
88id = "M3x50"
89title = "M3 × 50"
90params = { size = "M3", length = 50 }
91aliases = ["ISO 7380 M3x50", "ISO 7380-1 M3x50", "BHCS M3x50", "button head screw M3x50", "M3 x 50 mm"]
92standard = "ISO 7380-1"
93
94[[presets]]
95id = "M4x4"
96title = "M4 × 4"
97params = { size = "M4", length = 4 }
98aliases = ["ISO 7380 M4x4", "ISO 7380-1 M4x4", "BHCS M4x4", "button head screw M4x4", "M4 x 4 mm"]
99standard = "ISO 7380-1"
100
101[[presets]]
102id = "M4x5"
103title = "M4 × 5"
104params = { size = "M4", length = 5 }
105aliases = ["ISO 7380 M4x5", "ISO 7380-1 M4x5", "BHCS M4x5", "button head screw M4x5", "M4 x 5 mm"]
106standard = "ISO 7380-1"
107
108[[presets]]
109id = "M4x6"
110title = "M4 × 6"
111params = { size = "M4", length = 6 }
112aliases = ["ISO 7380 M4x6", "ISO 7380-1 M4x6", "BHCS M4x6", "button head screw M4x6", "M4 x 6 mm"]
113standard = "ISO 7380-1"
114
115[[presets]]
116id = "M4x8"
117title = "M4 × 8"
118params = { size = "M4", length = 8 }
119aliases = ["ISO 7380 M4x8", "ISO 7380-1 M4x8", "BHCS M4x8", "button head screw M4x8", "M4 x 8 mm"]
120standard = "ISO 7380-1"
121
122[[presets]]
123id = "M4x10"
124title = "M4 × 10"
125params = { size = "M4", length = 10 }
126aliases = ["ISO 7380 M4x10", "ISO 7380-1 M4x10", "BHCS M4x10", "button head screw M4x10", "M4 x 10 mm"]
127standard = "ISO 7380-1"
128
129[[presets]]
130id = "M4x12"
131title = "M4 × 12"
132params = { size = "M4", length = 12 }
133aliases = ["ISO 7380 M4x12", "ISO 7380-1 M4x12", "BHCS M4x12", "button head screw M4x12", "M4 x 12 mm"]
134standard = "ISO 7380-1"
135
136[[presets]]
137id = "M4x16"
138title = "M4 × 16"
139params = { size = "M4", length = 16 }
140aliases = ["ISO 7380 M4x16", "ISO 7380-1 M4x16", "BHCS M4x16", "button head screw M4x16", "M4 x 16 mm"]
141standard = "ISO 7380-1"
142
143[[presets]]
144id = "M4x20"
145title = "M4 × 20"
146params = { size = "M4", length = 20 }
147aliases = ["ISO 7380 M4x20", "ISO 7380-1 M4x20", "BHCS M4x20", "button head screw M4x20", "M4 x 20 mm"]
148standard = "ISO 7380-1"
149
150[[presets]]
151id = "M4x25"
152title = "M4 × 25"
153params = { size = "M4", length = 25 }
154aliases = ["ISO 7380 M4x25", "ISO 7380-1 M4x25", "BHCS M4x25", "button head screw M4x25", "M4 x 25 mm"]
155standard = "ISO 7380-1"
156
157[[presets]]
158id = "M4x30"
159title = "M4 × 30"
160params = { size = "M4", length = 30 }
161aliases = ["ISO 7380 M4x30", "ISO 7380-1 M4x30", "BHCS M4x30", "button head screw M4x30", "M4 x 30 mm"]
162standard = "ISO 7380-1"
163
164[[presets]]
165id = "M4x35"
166title = "M4 × 35"
167params = { size = "M4", length = 35 }
168aliases = ["ISO 7380 M4x35", "ISO 7380-1 M4x35", "BHCS M4x35", "button head screw M4x35", "M4 x 35 mm"]
169standard = "ISO 7380-1"
170
171[[presets]]
172id = "M4x40"
173title = "M4 × 40"
174params = { size = "M4", length = 40 }
175aliases = ["ISO 7380 M4x40", "ISO 7380-1 M4x40", "BHCS M4x40", "button head screw M4x40", "M4 x 40 mm"]
176standard = "ISO 7380-1"
177
178[[presets]]
179id = "M4x50"
180title = "M4 × 50"
181params = { size = "M4", length = 50 }
182aliases = ["ISO 7380 M4x50", "ISO 7380-1 M4x50", "BHCS M4x50", "button head screw M4x50", "M4 x 50 mm"]
183standard = "ISO 7380-1"
184
185[[presets]]
186id = "M5x4"
187title = "M5 × 4"
188params = { size = "M5", length = 4 }
189aliases = ["ISO 7380 M5x4", "ISO 7380-1 M5x4", "BHCS M5x4", "button head screw M5x4", "M5 x 4 mm"]
190standard = "ISO 7380-1"
191
192[[presets]]
193id = "M5x5"
194title = "M5 × 5"
195params = { size = "M5", length = 5 }
196aliases = ["ISO 7380 M5x5", "ISO 7380-1 M5x5", "BHCS M5x5", "button head screw M5x5", "M5 x 5 mm"]
197standard = "ISO 7380-1"
198
199[[presets]]
200id = "M5x6"
201title = "M5 × 6"
202params = { size = "M5", length = 6 }
203aliases = ["ISO 7380 M5x6", "ISO 7380-1 M5x6", "BHCS M5x6", "button head screw M5x6", "M5 x 6 mm"]
204standard = "ISO 7380-1"
205
206[[presets]]
207id = "M5x8"
208title = "M5 × 8"
209params = { size = "M5", length = 8 }
210aliases = ["ISO 7380 M5x8", "ISO 7380-1 M5x8", "BHCS M5x8", "button head screw M5x8", "M5 x 8 mm"]
211standard = "ISO 7380-1"
212
213[[presets]]
214id = "M5x10"
215title = "M5 × 10"
216params = { size = "M5", length = 10 }
217aliases = ["ISO 7380 M5x10", "ISO 7380-1 M5x10", "BHCS M5x10", "button head screw M5x10", "M5 x 10 mm"]
218standard = "ISO 7380-1"
219
220[[presets]]
221id = "M5x12"
222title = "M5 × 12"
223params = { size = "M5", length = 12 }
224aliases = ["ISO 7380 M5x12", "ISO 7380-1 M5x12", "BHCS M5x12", "button head screw M5x12", "M5 x 12 mm"]
225standard = "ISO 7380-1"
226
227[[presets]]
228id = "M5x16"
229title = "M5 × 16"
230params = { size = "M5", length = 16 }
231aliases = ["ISO 7380 M5x16", "ISO 7380-1 M5x16", "BHCS M5x16", "button head screw M5x16", "M5 x 16 mm"]
232standard = "ISO 7380-1"
233
234[[presets]]
235id = "M5x20"
236title = "M5 × 20"
237params = { size = "M5", length = 20 }
238aliases = ["ISO 7380 M5x20", "ISO 7380-1 M5x20", "BHCS M5x20", "button head screw M5x20", "M5 x 20 mm"]
239standard = "ISO 7380-1"
240
241[[presets]]
242id = "M5x25"
243title = "M5 × 25"
244params = { size = "M5", length = 25 }
245aliases = ["ISO 7380 M5x25", "ISO 7380-1 M5x25", "BHCS M5x25", "button head screw M5x25", "M5 x 25 mm"]
246standard = "ISO 7380-1"
247
248[[presets]]
249id = "M5x30"
250title = "M5 × 30"
251params = { size = "M5", length = 30 }
252aliases = ["ISO 7380 M5x30", "ISO 7380-1 M5x30", "BHCS M5x30", "button head screw M5x30", "M5 x 30 mm"]
253standard = "ISO 7380-1"
254
255[[presets]]
256id = "M5x35"
257title = "M5 × 35"
258params = { size = "M5", length = 35 }
259aliases = ["ISO 7380 M5x35", "ISO 7380-1 M5x35", "BHCS M5x35", "button head screw M5x35", "M5 x 35 mm"]
260standard = "ISO 7380-1"
261
262[[presets]]
263id = "M5x40"
264title = "M5 × 40"
265params = { size = "M5", length = 40 }
266aliases = ["ISO 7380 M5x40", "ISO 7380-1 M5x40", "BHCS M5x40", "button head screw M5x40", "M5 x 40 mm"]
267standard = "ISO 7380-1"
268
269[[presets]]
270id = "M5x50"
271title = "M5 × 50"
272params = { size = "M5", length = 50 }
273aliases = ["ISO 7380 M5x50", "ISO 7380-1 M5x50", "BHCS M5x50", "button head screw M5x50", "M5 x 50 mm"]
274standard = "ISO 7380-1"
275
276[[presets]]
277id = "M6x4"
278title = "M6 × 4"
279params = { size = "M6", length = 4 }
280aliases = ["ISO 7380 M6x4", "ISO 7380-1 M6x4", "BHCS M6x4", "button head screw M6x4", "M6 x 4 mm"]
281standard = "ISO 7380-1"
282
283[[presets]]
284id = "M6x5"
285title = "M6 × 5"
286params = { size = "M6", length = 5 }
287aliases = ["ISO 7380 M6x5", "ISO 7380-1 M6x5", "BHCS M6x5", "button head screw M6x5", "M6 x 5 mm"]
288standard = "ISO 7380-1"
289
290[[presets]]
291id = "M6x6"
292title = "M6 × 6"
293params = { size = "M6", length = 6 }
294aliases = ["ISO 7380 M6x6", "ISO 7380-1 M6x6", "BHCS M6x6", "button head screw M6x6", "M6 x 6 mm"]
295standard = "ISO 7380-1"
296
297[[presets]]
298id = "M6x8"
299title = "M6 × 8"
300params = { size = "M6", length = 8 }
301aliases = ["ISO 7380 M6x8", "ISO 7380-1 M6x8", "BHCS M6x8", "button head screw M6x8", "M6 x 8 mm"]
302standard = "ISO 7380-1"
303
304[[presets]]
305id = "M6x10"
306title = "M6 × 10"
307params = { size = "M6", length = 10 }
308aliases = ["ISO 7380 M6x10", "ISO 7380-1 M6x10", "BHCS M6x10", "button head screw M6x10", "M6 x 10 mm"]
309standard = "ISO 7380-1"
310
311[[presets]]
312id = "M6x12"
313title = "M6 × 12"
314params = { size = "M6", length = 12 }
315aliases = ["ISO 7380 M6x12", "ISO 7380-1 M6x12", "BHCS M6x12", "button head screw M6x12", "M6 socket button head screw", "ISO7380 M6x12"]
316standard = "ISO 7380-1"
317
318[[presets]]
319id = "M6x16"
320title = "M6 × 16"
321params = { size = "M6", length = 16 }
322aliases = ["ISO 7380 M6x16", "ISO 7380-1 M6x16", "BHCS M6x16", "button head screw M6x16", "M6 x 16 mm"]
323standard = "ISO 7380-1"
324
325[[presets]]
326id = "M6x20"
327title = "M6 × 20"
328params = { size = "M6", length = 20 }
329aliases = ["ISO 7380 M6x20", "ISO 7380-1 M6x20", "BHCS M6x20", "button head screw M6x20", "M6 x 20 mm"]
330standard = "ISO 7380-1"
331
332[[presets]]
333id = "M6x25"
334title = "M6 × 25"
335params = { size = "M6", length = 25 }
336aliases = ["ISO 7380 M6x25", "ISO 7380-1 M6x25", "BHCS M6x25", "button head screw M6x25", "M6 x 25 mm"]
337standard = "ISO 7380-1"
338
339[[presets]]
340id = "M6x30"
341title = "M6 × 30"
342params = { size = "M6", length = 30 }
343aliases = ["ISO 7380 M6x30", "ISO 7380-1 M6x30", "BHCS M6x30", "button head screw M6x30", "M6 x 30 mm"]
344standard = "ISO 7380-1"
345
346[[presets]]
347id = "M6x35"
348title = "M6 × 35"
349params = { size = "M6", length = 35 }
350aliases = ["ISO 7380 M6x35", "ISO 7380-1 M6x35", "BHCS M6x35", "button head screw M6x35", "M6 x 35 mm"]
351standard = "ISO 7380-1"
352
353[[presets]]
354id = "M6x40"
355title = "M6 × 40"
356params = { size = "M6", length = 40 }
357aliases = ["ISO 7380 M6x40", "ISO 7380-1 M6x40", "BHCS M6x40", "button head screw M6x40", "M6 x 40 mm"]
358standard = "ISO 7380-1"
359
360[[presets]]
361id = "M6x50"
362title = "M6 × 50"
363params = { size = "M6", length = 50 }
364aliases = ["ISO 7380 M6x50", "ISO 7380-1 M6x50", "BHCS M6x50", "button head screw M6x50", "M6 x 50 mm"]
365standard = "ISO 7380-1"
366
367[[presets]]
368id = "M8x4"
369title = "M8 × 4"
370params = { size = "M8", length = 4 }
371aliases = ["ISO 7380 M8x4", "ISO 7380-1 M8x4", "BHCS M8x4", "button head screw M8x4", "M8 x 4 mm"]
372standard = "ISO 7380-1"
373
374[[presets]]
375id = "M8x5"
376title = "M8 × 5"
377params = { size = "M8", length = 5 }
378aliases = ["ISO 7380 M8x5", "ISO 7380-1 M8x5", "BHCS M8x5", "button head screw M8x5", "M8 x 5 mm"]
379standard = "ISO 7380-1"
380
381[[presets]]
382id = "M8x6"
383title = "M8 × 6"
384params = { size = "M8", length = 6 }
385aliases = ["ISO 7380 M8x6", "ISO 7380-1 M8x6", "BHCS M8x6", "button head screw M8x6", "M8 x 6 mm"]
386standard = "ISO 7380-1"
387
388[[presets]]
389id = "M8x8"
390title = "M8 × 8"
391params = { size = "M8", length = 8 }
392aliases = ["ISO 7380 M8x8", "ISO 7380-1 M8x8", "BHCS M8x8", "button head screw M8x8", "M8 x 8 mm"]
393standard = "ISO 7380-1"
394
395[[presets]]
396id = "M8x10"
397title = "M8 × 10"
398params = { size = "M8", length = 10 }
399aliases = ["ISO 7380 M8x10", "ISO 7380-1 M8x10", "BHCS M8x10", "button head screw M8x10", "M8 x 10 mm"]
400standard = "ISO 7380-1"
401
402[[presets]]
403id = "M8x12"
404title = "M8 × 12"
405params = { size = "M8", length = 12 }
406aliases = ["ISO 7380 M8x12", "ISO 7380-1 M8x12", "BHCS M8x12", "button head screw M8x12", "M8 x 12 mm"]
407standard = "ISO 7380-1"
408
409[[presets]]
410id = "M8x16"
411title = "M8 × 16"
412params = { size = "M8", length = 16 }
413aliases = ["ISO 7380 M8x16", "ISO 7380-1 M8x16", "BHCS M8x16", "button head screw M8x16", "M8 x 16 mm"]
414standard = "ISO 7380-1"
415
416[[presets]]
417id = "M8x20"
418title = "M8 × 20"
419params = { size = "M8", length = 20 }
420aliases = ["ISO 7380 M8x20", "ISO 7380-1 M8x20", "BHCS M8x20", "button head screw M8x20", "M8 x 20 mm"]
421standard = "ISO 7380-1"
422
423[[presets]]
424id = "M8x25"
425title = "M8 × 25"
426params = { size = "M8", length = 25 }
427aliases = ["ISO 7380 M8x25", "ISO 7380-1 M8x25", "BHCS M8x25", "button head screw M8x25", "M8 x 25 mm"]
428standard = "ISO 7380-1"
429
430[[presets]]
431id = "M8x30"
432title = "M8 × 30"
433params = { size = "M8", length = 30 }
434aliases = ["ISO 7380 M8x30", "ISO 7380-1 M8x30", "BHCS M8x30", "button head screw M8x30", "M8 x 30 mm"]
435standard = "ISO 7380-1"
436
437[[presets]]
438id = "M8x35"
439title = "M8 × 35"
440params = { size = "M8", length = 35 }
441aliases = ["ISO 7380 M8x35", "ISO 7380-1 M8x35", "BHCS M8x35", "button head screw M8x35", "M8 x 35 mm"]
442standard = "ISO 7380-1"
443
444[[presets]]
445id = "M8x40"
446title = "M8 × 40"
447params = { size = "M8", length = 40 }
448aliases = ["ISO 7380 M8x40", "ISO 7380-1 M8x40", "BHCS M8x40", "button head screw M8x40", "M8 x 40 mm"]
449standard = "ISO 7380-1"
450
451[[presets]]
452id = "M8x50"
453title = "M8 × 50"
454params = { size = "M8", length = 50 }
455aliases = ["ISO 7380 M8x50", "ISO 7380-1 M8x50", "BHCS M8x50", "button head screw M8x50", "M8 x 50 mm"]
456standard = "ISO 7380-1"
457
README.md added in 2.0.0
@@ -1,0 +1,47 @@
1# Button head screw (ISO 7380-1)
2
3Hexagon socket button head screw, metric coarse thread, M3 to M16, at any length. Presets cover the common catalogue
4sizes (M3 × 6, M5 × 10, ...).
5
6## Geometry
7
8Envelope for assemblies and clearance checks:
9
10- domed head: a spherical cap of diameter **dk max** and height **k max** (the standard's head radius is a reference
11 value; the cap through the rim and the top is used);
12- hexagon socket, key size **s** (nominal), depth **t min**, flat bottom;
13- plain shank at the nominal thread diameter **d**, length **l** (`length`); the thread is not modelled.
14
15The head's bearing face is on the XY plane at the origin, the head above it, the shank along -Z.
16
17## Parameters
18
19| Parameter | Meaning |
20|---|---|
21| `size` | Thread size, M3 to M16 |
22| `length` | Nominal length l under the head, mm |
23| `material` | `steel` (property class 10.9 / 12.9, black oxide), `stainless-a2`, `stainless-a4` (ISO 3506-1) |
24
25## Source
26
27ISO 7380-1:2011, *Button head screws — Part 1: Hexagon socket button head screws*, Table 1, p. 3: d, dk max, k max,
28s (nominal), t min, read from the official preview
29(<https://cdn.standards.iteh.ai/samples/53671/84df01c5fcce4a91896ac3b0c55ca128/ISO-7380-1-2011.pdf>) and fasten.it's
30DIN EN ISO 7380-1:2011-11 (<https://fasten.it/en/Norms/Norm/DIN%20EN%20ISO%207380-1>). The current edition,
31ISO 7380-1:2022, Table 1, p. 4
32(<https://cdn.standards.iteh.ai/samples/78699/a175805085534f98983d6c8aa583a5b0/ISO-7380-1-2022.pdf>), has the same
33dk max, k max, s and t min (it adds t max and changes dw and e, which this model doesn't use).
34
35| Size | dk | k | s | t |
36|---|---|---|---|---|
37| M3 | 5.7 | 1.65 | 2.0 | 1.04 |
38| M4 | 7.6 | 2.2 | 2.5 | 1.3 |
39| M5 | 9.5 | 2.75 | 3.0 | 1.56 |
40| M6 | 10.5 | 3.3 | 4.0 | 2.08 |
41| M8 | 14.0 | 4.4 | 5.0 | 2.6 |
42| M10 | 17.5 | 5.5 | 6.0 | 3.12 |
43| M12 | 21.0 | 6.6 | 8.0 | 4.16 |
44| M16 | 28.0 | 8.8 | 10.0 | 5.2 |
45
46Preset list: sizes and lengths of the step.parts catalogue (MIT), see `library/NOTICE.md`.
47