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.
Hexagon head screw, fully threaded, ISO 4017 / DIN 933, M1.6 to M36, any length, with catalogue sizes as presets.
| 1 | """Hexagon head screw (fully threaded), ISO 4017 (DIN 933), M1.6 to M36, any length. |
| 2 | |
| 3 | Envelope model for assemblies: hexagon head (width across flats s, height k, sharp corners) and a plain shank at the |
| 4 | nominal thread diameter d (the thread is not modelled). The head's bearing face is on the XY plane at the origin, |
| 5 | the head above it, the shank along -Z; `length` is the nominal length l, measured from under the head. Two flats of |
| 6 | the head are parallel to the X axis. |
| 7 | """ |
| 8 | from steve import Model |
| 9 | |
| 10 | size = "M6" # Thread size |
| 11 | length = 20 # mm Nominal length (under the head) |
| 12 | material = "steel" # Material |
| 13 | |
| 14 | # ISO 4017:2022, Tables 1-3 (official preview pp. 3-5: |
| 15 | # https://cdn.standards.iteh.ai/samples/72585/1179998ddd594550a909d6e13c416f3e/ISO-4017-2022.pdf); the same values in |
| 16 | # ISO 4017:2011 Table 1 and ISO 4017:2014 (M1.6-M6 seen). size: (thread d, width across flats s nominal, head height k nominal) |
| 17 | DIMENSIONS = { |
| 18 | "M1.6": (1.6, 3.2, 1.1), |
| 19 | "M2": (2.0, 4.0, 1.4), |
| 20 | "M2.5": (2.5, 5.0, 1.7), |
| 21 | "M3": (3.0, 5.5, 2.0), |
| 22 | "M4": (4.0, 7.0, 2.8), |
| 23 | "M5": (5.0, 8.0, 3.5), |
| 24 | "M6": (6.0, 10.0, 4.0), |
| 25 | "M8": (8.0, 13.0, 5.3), |
| 26 | "M10": (10.0, 16.0, 6.4), |
| 27 | "M12": (12.0, 18.0, 7.5), |
| 28 | "M14": (14.0, 21.0, 8.8), |
| 29 | "M16": (16.0, 24.0, 10.0), |
| 30 | "M20": (20.0, 30.0, 12.5), |
| 31 | "M24": (24.0, 36.0, 15.0), |
| 32 | "M30": (30.0, 46.0, 18.7), |
| 33 | "M36": (36.0, 55.0, 22.5), |
| 34 | } |
| 35 | # material choice: (STEVE material library id, appearance colour) |
| 36 | MATERIALS = { |
| 37 | "steel": ("steel-generic", "#b4b8bd"), # property class 8.8, zinc plated |
| 38 | "stainless-a2": ("stainless-304", "#c9ccd0"), # ISO 3506-1 A2-70 |
| 39 | "stainless-a4": ("stainless-316", "#c9ccd0"), # ISO 3506-1 A4-70 / A4-80 |
| 40 | } |
| 41 | |
| 42 | d, s, k = DIMENSIONS[size] |
| 43 | material_id, colour = MATERIALS[material] |
| 44 | |
| 45 | model = Model() |
| 46 | with model.sketch("head_sketch", on="XY", name="Head") as sk: |
| 47 | sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False) |
| 48 | model.extrude("head", "head_sketch", distance=k, name="Head") |
| 49 | with model.sketch("shank_sketch", on="XY", name="Shank") as sk: |
| 50 | sk.circle("shank_circle", (0, 0), d / 2) |
| 51 | model.extrude("shank", "shank_sketch", distance=-length, name="Shank") |
| 52 | model.material(material_id, color=colour) |
| 53 | result = model.result() |
| 54 |
| 1 | name = "steve/hex-head-screw" |
| 2 | version = "2.0.0" |
| 3 | runtime = "steve" |
| 4 | license = "MIT" |
| 5 | summary = "Hexagon head screw, fully threaded, ISO 4017 / DIN 933, M1.6 to M36, any length, with catalogue sizes as presets." |
| 6 | description = """ISO 4017 (DIN 933) hexagon head screw, thread to the head. Envelope geometry for assemblies: hexagon \ |
| 7 | head (s, k, sharp corners) and a plain shank at the nominal thread diameter; the thread itself is not modelled. |
| 8 | |
| 9 | The head's bearing face is on the XY plane at the origin and the shank points along -Z; `length` is the nominal \ |
| 10 | length under the head. Dimensions from ISO 4017:2014 Table 1 (see the README).""" |
| 11 | tags = ["fastener", "screw", "bolt", "hex-head", "iso-4017", "din-933", "metric"] |
| 12 | |
| 13 | [parameters.size] |
| 14 | type = "choice" |
| 15 | default = "M6" |
| 16 | choices = ["M1.6", "M2", "M2.5", "M3", "M4", "M5", "M6", "M8", "M10", "M12", "M14", "M16", "M20", "M24", "M30", "M36"] |
| 17 | label = "Thread size" |
| 18 | |
| 19 | [parameters.length] |
| 20 | type = "number" |
| 21 | default = 20 |
| 22 | min = 2 |
| 23 | max = 400 |
| 24 | step = 1 |
| 25 | unit = "mm" |
| 26 | label = "Length" |
| 27 | description = "Nominal length l, from under the head to the end of the shank." |
| 28 | |
| 29 | [parameters.material] |
| 30 | type = "choice" |
| 31 | default = "steel" |
| 32 | choices = ["steel", "stainless-a2", "stainless-a4"] |
| 33 | label = "Material" |
| 34 | description = "steel: property class 8.8, zinc plated; stainless-a2 / stainless-a4: ISO 3506-1 A2 / A4." |
| 35 |
| 1 | # Presets of this part (factory/PRESETS.md). Written by factory/gen.py. |
| 2 | |
| 3 | [[presets]] |
| 4 | id = "M2x4" |
| 5 | title = "M2 × 4" |
| 6 | params = { size = "M2", length = 4 } |
| 7 | aliases = ["ISO 4017 M2x4", "DIN 933 M2x4", "hex bolt M2x4", "hex head screw M2x4", "M2 x 4 mm"] |
| 8 | standard = "ISO 4017" |
| 9 | |
| 10 | [[presets]] |
| 11 | id = "M2x5" |
| 12 | title = "M2 × 5" |
| 13 | params = { size = "M2", length = 5 } |
| 14 | aliases = ["ISO 4017 M2x5", "DIN 933 M2x5", "hex bolt M2x5", "hex head screw M2x5", "M2 x 5 mm"] |
| 15 | standard = "ISO 4017" |
| 16 | |
| 17 | [[presets]] |
| 18 | id = "M2x6" |
| 19 | title = "M2 × 6" |
| 20 | params = { size = "M2", length = 6 } |
| 21 | aliases = ["ISO 4017 M2x6", "DIN 933 M2x6", "hex bolt M2x6", "hex head screw M2x6", "M2 x 6 mm"] |
| 22 | standard = "ISO 4017" |
| 23 | |
| 24 | [[presets]] |
| 25 | id = "M2x8" |
| 26 | title = "M2 × 8" |
| 27 | params = { size = "M2", length = 8 } |
| 28 | aliases = ["ISO 4017 M2x8", "DIN 933 M2x8", "hex bolt M2x8", "hex head screw M2x8", "M2 x 8 mm"] |
| 29 | standard = "ISO 4017" |
| 30 | |
| 31 | [[presets]] |
| 32 | id = "M2x10" |
| 33 | title = "M2 × 10" |
| 34 | params = { size = "M2", length = 10 } |
| 35 | aliases = ["ISO 4017 M2x10", "DIN 933 M2x10", "hex bolt M2x10", "hex head screw M2x10", "M2 x 10 mm"] |
| 36 | standard = "ISO 4017" |
| 37 | |
| 38 | [[presets]] |
| 39 | id = "M2x12" |
| 40 | title = "M2 × 12" |
| 41 | params = { size = "M2", length = 12 } |
| 42 | aliases = ["ISO 4017 M2x12", "DIN 933 M2x12", "hex bolt M2x12", "hex head screw M2x12", "M2 x 12 mm"] |
| 43 | standard = "ISO 4017" |
| 44 | |
| 45 | [[presets]] |
| 46 | id = "M2x16" |
| 47 | title = "M2 × 16" |
| 48 | params = { size = "M2", length = 16 } |
| 49 | aliases = ["ISO 4017 M2x16", "DIN 933 M2x16", "hex bolt M2x16", "hex head screw M2x16", "M2 x 16 mm"] |
| 50 | standard = "ISO 4017" |
| 51 | |
| 52 | [[presets]] |
| 53 | id = "M2x20" |
| 54 | title = "M2 × 20" |
| 55 | params = { size = "M2", length = 20 } |
| 56 | aliases = ["ISO 4017 M2x20", "DIN 933 M2x20", "hex bolt M2x20", "hex head screw M2x20", "M2 x 20 mm"] |
| 57 | standard = "ISO 4017" |
| 58 | |
| 59 | [[presets]] |
| 60 | id = "M2x25" |
| 61 | title = "M2 × 25" |
| 62 | params = { size = "M2", length = 25 } |
| 63 | aliases = ["ISO 4017 M2x25", "DIN 933 M2x25", "hex bolt M2x25", "hex head screw M2x25", "M2 x 25 mm"] |
| 64 | standard = "ISO 4017" |
| 65 | |
| 66 | [[presets]] |
| 67 | id = "M2x30" |
| 68 | title = "M2 × 30" |
| 69 | params = { size = "M2", length = 30 } |
| 70 | aliases = ["ISO 4017 M2x30", "DIN 933 M2x30", "hex bolt M2x30", "hex head screw M2x30", "M2 x 30 mm"] |
| 71 | standard = "ISO 4017" |
| 72 | |
| 73 | [[presets]] |
| 74 | id = "M2.5x4" |
| 75 | title = "M2.5 × 4" |
| 76 | params = { size = "M2.5", length = 4 } |
| 77 | aliases = ["ISO 4017 M2.5x4", "DIN 933 M2.5x4", "hex bolt M2.5x4", "hex head screw M2.5x4", "M2.5 x 4 mm"] |
| 78 | standard = "ISO 4017" |
| 79 | |
| 80 | [[presets]] |
| 81 | id = "M2.5x5" |
| 82 | title = "M2.5 × 5" |
| 83 | params = { size = "M2.5", length = 5 } |
| 84 | aliases = ["ISO 4017 M2.5x5", "DIN 933 M2.5x5", "hex bolt M2.5x5", "hex head screw M2.5x5", "M2.5 x 5 mm"] |
| 85 | standard = "ISO 4017" |
| 86 | |
| 87 | [[presets]] |
| 88 | id = "M2.5x6" |
| 89 | title = "M2.5 × 6" |
| 90 | params = { size = "M2.5", length = 6 } |
| 91 | aliases = ["ISO 4017 M2.5x6", "DIN 933 M2.5x6", "hex bolt M2.5x6", "hex head screw M2.5x6", "M2.5 x 6 mm"] |
| 92 | standard = "ISO 4017" |
| 93 | |
| 94 | [[presets]] |
| 95 | id = "M2.5x8" |
| 96 | title = "M2.5 × 8" |
| 97 | params = { size = "M2.5", length = 8 } |
| 98 | aliases = ["ISO 4017 M2.5x8", "DIN 933 M2.5x8", "hex bolt M2.5x8", "hex head screw M2.5x8", "M2.5 x 8 mm"] |
| 99 | standard = "ISO 4017" |
| 100 | |
| 101 | [[presets]] |
| 102 | id = "M2.5x10" |
| 103 | title = "M2.5 × 10" |
| 104 | params = { size = "M2.5", length = 10 } |
| 105 | aliases = ["ISO 4017 M2.5x10", "DIN 933 M2.5x10", "hex bolt M2.5x10", "hex head screw M2.5x10", "M2.5 x 10 mm"] |
| 106 | standard = "ISO 4017" |
| 107 | |
| 108 | [[presets]] |
| 109 | id = "M2.5x12" |
| 110 | title = "M2.5 × 12" |
| 111 | params = { size = "M2.5", length = 12 } |
| 112 | aliases = ["ISO 4017 M2.5x12", "DIN 933 M2.5x12", "hex bolt M2.5x12", "hex head screw M2.5x12", "M2.5 x 12 mm"] |
| 113 | standard = "ISO 4017" |
| 114 | |
| 115 | [[presets]] |
| 116 | id = "M2.5x16" |
| 117 | title = "M2.5 × 16" |
| 118 | params = { size = "M2.5", length = 16 } |
| 119 | aliases = ["ISO 4017 M2.5x16", "DIN 933 M2.5x16", "hex bolt M2.5x16", "hex head screw M2.5x16", "M2.5 x 16 mm"] |
| 120 | standard = "ISO 4017" |
| 121 | |
| 122 | [[presets]] |
| 123 | id = "M2.5x20" |
| 124 | title = "M2.5 × 20" |
| 125 | params = { size = "M2.5", length = 20 } |
| 126 | aliases = ["ISO 4017 M2.5x20", "DIN 933 M2.5x20", "hex bolt M2.5x20", "hex head screw M2.5x20", "M2.5 x 20 mm"] |
| 127 | standard = "ISO 4017" |
| 128 | |
| 129 | [[presets]] |
| 130 | id = "M2.5x25" |
| 131 | title = "M2.5 × 25" |
| 132 | params = { size = "M2.5", length = 25 } |
| 133 | aliases = ["ISO 4017 M2.5x25", "DIN 933 M2.5x25", "hex bolt M2.5x25", "hex head screw M2.5x25", "M2.5 x 25 mm"] |
| 134 | standard = "ISO 4017" |
| 135 | |
| 136 | [[presets]] |
| 137 | id = "M2.5x30" |
| 138 | title = "M2.5 × 30" |
| 139 | params = { size = "M2.5", length = 30 } |
| 140 | aliases = ["ISO 4017 M2.5x30", "DIN 933 M2.5x30", "hex bolt M2.5x30", "hex head screw M2.5x30", "M2.5 x 30 mm"] |
| 141 | standard = "ISO 4017" |
| 142 | |
| 143 | [[presets]] |
| 144 | id = "M3x4" |
| 145 | title = "M3 × 4" |
| 146 | params = { size = "M3", length = 4 } |
| 147 | aliases = ["ISO 4017 M3x4", "DIN 933 M3x4", "hex bolt M3x4", "hex head screw M3x4", "M3 x 4 mm"] |
| 148 | standard = "ISO 4017" |
| 149 | |
| 150 | [[presets]] |
| 151 | id = "M3x5" |
| 152 | title = "M3 × 5" |
| 153 | params = { size = "M3", length = 5 } |
| 154 | aliases = ["ISO 4017 M3x5", "DIN 933 M3x5", "hex bolt M3x5", "hex head screw M3x5", "M3 x 5 mm"] |
| 155 | standard = "ISO 4017" |
| 156 | |
| 157 | [[presets]] |
| 158 | id = "M3x6" |
| 159 | title = "M3 × 6" |
| 160 | params = { size = "M3", length = 6 } |
| 161 | aliases = ["ISO 4017 M3x6", "DIN 933 M3x6", "hex bolt M3x6", "hex head screw M3x6", "M3 x 6 mm"] |
| 162 | standard = "ISO 4017" |
| 163 | |
| 164 | [[presets]] |
| 165 | id = "M3x8" |
| 166 | title = "M3 × 8" |
| 167 | params = { size = "M3", length = 8 } |
| 168 | aliases = ["ISO 4017 M3x8", "DIN 933 M3x8", "hex bolt M3x8", "hex head screw M3x8", "M3 x 8 mm"] |
| 169 | standard = "ISO 4017" |
| 170 | |
| 171 | [[presets]] |
| 172 | id = "M3x10" |
| 173 | title = "M3 × 10" |
| 174 | params = { size = "M3", length = 10 } |
| 175 | aliases = ["ISO 4017 M3x10", "DIN 933 M3x10", "hex bolt M3x10", "hex head screw M3x10", "M3 x 10 mm"] |
| 176 | standard = "ISO 4017" |
| 177 | |
| 178 | [[presets]] |
| 179 | id = "M3x12" |
| 180 | title = "M3 × 12" |
| 181 | params = { size = "M3", length = 12 } |
| 182 | aliases = ["ISO 4017 M3x12", "DIN 933 M3x12", "hex bolt M3x12", "hex head screw M3x12", "M3 x 12 mm"] |
| 183 | standard = "ISO 4017" |
| 184 | |
| 185 | [[presets]] |
| 186 | id = "M3x16" |
| 187 | title = "M3 × 16" |
| 188 | params = { size = "M3", length = 16 } |
| 189 | aliases = ["ISO 4017 M3x16", "DIN 933 M3x16", "hex bolt M3x16", "hex head screw M3x16", "M3 x 16 mm"] |
| 190 | standard = "ISO 4017" |
| 191 | |
| 192 | [[presets]] |
| 193 | id = "M3x20" |
| 194 | title = "M3 × 20" |
| 195 | params = { size = "M3", length = 20 } |
| 196 | aliases = ["ISO 4017 M3x20", "DIN 933 M3x20", "hex bolt M3x20", "hex head screw M3x20", "M3 x 20 mm"] |
| 197 | standard = "ISO 4017" |
| 198 | |
| 199 | [[presets]] |
| 200 | id = "M3x25" |
| 201 | title = "M3 × 25" |
| 202 | params = { size = "M3", length = 25 } |
| 203 | aliases = ["ISO 4017 M3x25", "DIN 933 M3x25", "hex bolt M3x25", "hex head screw M3x25", "M3 x 25 mm"] |
| 204 | standard = "ISO 4017" |
| 205 | |
| 206 | [[presets]] |
| 207 | id = "M3x30" |
| 208 | title = "M3 × 30" |
| 209 | params = { size = "M3", length = 30 } |
| 210 | aliases = ["ISO 4017 M3x30", "DIN 933 M3x30", "hex bolt M3x30", "hex head screw M3x30", "M3 x 30 mm"] |
| 211 | standard = "ISO 4017" |
| 212 | |
| 213 | [[presets]] |
| 214 | id = "M3x35" |
| 215 | title = "M3 × 35" |
| 216 | params = { size = "M3", length = 35 } |
| 217 | aliases = ["ISO 4017 M3x35", "DIN 933 M3x35", "hex bolt M3x35", "hex head screw M3x35", "M3 x 35 mm"] |
| 218 | standard = "ISO 4017" |
| 219 | |
| 220 | [[presets]] |
| 221 | id = "M3x40" |
| 222 | title = "M3 × 40" |
| 223 | params = { size = "M3", length = 40 } |
| 224 | aliases = ["ISO 4017 M3x40", "DIN 933 M3x40", "hex bolt M3x40", "hex head screw M3x40", "M3 x 40 mm"] |
| 225 | standard = "ISO 4017" |
| 226 | |
| 227 | [[presets]] |
| 228 | id = "M3x50" |
| 229 | title = "M3 × 50" |
| 230 | params = { size = "M3", length = 50 } |
| 231 | aliases = ["ISO 4017 M3x50", "DIN 933 M3x50", "hex bolt M3x50", "hex head screw M3x50", "M3 x 50 mm"] |
| 232 | standard = "ISO 4017" |
| 233 | |
| 234 | [[presets]] |
| 235 | id = "M4x4" |
| 236 | title = "M4 × 4" |
| 237 | params = { size = "M4", length = 4 } |
| 238 | aliases = ["ISO 4017 M4x4", "DIN 933 M4x4", "hex bolt M4x4", "hex head screw M4x4", "M4 x 4 mm"] |
| 239 | standard = "ISO 4017" |
| 240 | |
| 241 | [[presets]] |
| 242 | id = "M4x5" |
| 243 | title = "M4 × 5" |
| 244 | params = { size = "M4", length = 5 } |
| 245 | aliases = ["ISO 4017 M4x5", "DIN 933 M4x5", "hex bolt M4x5", "hex head screw M4x5", "M4 x 5 mm"] |
| 246 | standard = "ISO 4017" |
| 247 | |
| 248 | [[presets]] |
| 249 | id = "M4x6" |
| 250 | title = "M4 × 6" |
| 251 | params = { size = "M4", length = 6 } |
| 252 | aliases = ["ISO 4017 M4x6", "DIN 933 M4x6", "hex bolt M4x6", "hex head screw M4x6", "M4 x 6 mm"] |
| 253 | standard = "ISO 4017" |
| 254 | |
| 255 | [[presets]] |
| 256 | id = "M4x8" |
| 257 | title = "M4 × 8" |
| 258 | params = { size = "M4", length = 8 } |
| 259 | aliases = ["ISO 4017 M4x8", "DIN 933 M4x8", "hex bolt M4x8", "hex head screw M4x8", "M4 x 8 mm"] |
| 260 | standard = "ISO 4017" |
| 261 | |
| 262 | [[presets]] |
| 263 | id = "M4x10" |
| 264 | title = "M4 × 10" |
| 265 | params = { size = "M4", length = 10 } |
| 266 | aliases = ["ISO 4017 M4x10", "DIN 933 M4x10", "hex bolt M4x10", "hex head screw M4x10", "M4 x 10 mm"] |
| 267 | standard = "ISO 4017" |
| 268 | |
| 269 | [[presets]] |
| 270 | id = "M4x12" |
| 271 | title = "M4 × 12" |
| 272 | params = { size = "M4", length = 12 } |
| 273 | aliases = ["ISO 4017 M4x12", "DIN 933 M4x12", "hex bolt M4x12", "hex head screw M4x12", "M4 x 12 mm"] |
| 274 | standard = "ISO 4017" |
| 275 | |
| 276 | [[presets]] |
| 277 | id = "M4x16" |
| 278 | title = "M4 × 16" |
| 279 | params = { size = "M4", length = 16 } |
| 280 | aliases = ["ISO 4017 M4x16", "DIN 933 M4x16", "hex bolt M4x16", "hex head screw M4x16", "M4 x 16 mm"] |
| 281 | standard = "ISO 4017" |
| 282 | |
| 283 | [[presets]] |
| 284 | id = "M4x20" |
| 285 | title = "M4 × 20" |
| 286 | params = { size = "M4", length = 20 } |
| 287 | aliases = ["ISO 4017 M4x20", "DIN 933 M4x20", "hex bolt M4x20", "hex head screw M4x20", "M4 x 20 mm"] |
| 288 | standard = "ISO 4017" |
| 289 | |
| 290 | [[presets]] |
| 291 | id = "M4x25" |
| 292 | title = "M4 × 25" |
| 293 | params = { size = "M4", length = 25 } |
| 294 | aliases = ["ISO 4017 M4x25", "DIN 933 M4x25", "hex bolt M4x25", "hex head screw M4x25", "M4 x 25 mm"] |
| 295 | standard = "ISO 4017" |
| 296 | |
| 297 | [[presets]] |
| 298 | id = "M4x30" |
| 299 | title = "M4 × 30" |
| 300 | params = { size = "M4", length = 30 } |
| 301 | aliases = ["ISO 4017 M4x30", "DIN 933 M4x30", "hex bolt M4x30", "hex head screw M4x30", "M4 x 30 mm"] |
| 302 | standard = "ISO 4017" |
| 303 | |
| 304 | [[presets]] |
| 305 | id = "M4x35" |
| 306 | title = "M4 × 35" |
| 307 | params = { size = "M4", length = 35 } |
| 308 | aliases = ["ISO 4017 M4x35", "DIN 933 M4x35", "hex bolt M4x35", "hex head screw M4x35", "M4 x 35 mm"] |
| 309 | standard = "ISO 4017" |
| 310 | |
| 311 | [[presets]] |
| 312 | id = "M4x40" |
| 313 | title = "M4 × 40" |
| 314 | params = { size = "M4", length = 40 } |
| 315 | aliases = ["ISO 4017 M4x40", "DIN 933 M4x40", "hex bolt M4x40", "hex head screw M4x40", "M4 x 40 mm"] |
| 316 | standard = "ISO 4017" |
| 317 | |
| 318 | [[presets]] |
| 319 | id = "M4x50" |
| 320 | title = "M4 × 50" |
| 321 | params = { size = "M4", length = 50 } |
| 322 | aliases = ["ISO 4017 M4x50", "DIN 933 M4x50", "hex bolt M4x50", "hex head screw M4x50", "M4 x 50 mm"] |
| 323 | standard = "ISO 4017" |
| 324 | |
| 325 | [[presets]] |
| 326 | id = "M5x4" |
| 327 | title = "M5 × 4" |
| 328 | params = { size = "M5", length = 4 } |
| 329 | aliases = ["ISO 4017 M5x4", "DIN 933 M5x4", "hex bolt M5x4", "hex head screw M5x4", "M5 x 4 mm"] |
| 330 | standard = "ISO 4017" |
| 331 | |
| 332 | [[presets]] |
| 333 | id = "M5x5" |
| 334 | title = "M5 × 5" |
| 335 | params = { size = "M5", length = 5 } |
| 336 | aliases = ["ISO 4017 M5x5", "DIN 933 M5x5", "hex bolt M5x5", "hex head screw M5x5", "M5 x 5 mm"] |
| 337 | standard = "ISO 4017" |
| 338 | |
| 339 | [[presets]] |
| 340 | id = "M5x6" |
| 341 | title = "M5 × 6" |
| 342 | params = { size = "M5", length = 6 } |
| 343 | aliases = ["ISO 4017 M5x6", "DIN 933 M5x6", "hex bolt M5x6", "hex head screw M5x6", "M5 x 6 mm"] |
| 344 | standard = "ISO 4017" |
| 345 | |
| 346 | [[presets]] |
| 347 | id = "M5x8" |
| 348 | title = "M5 × 8" |
| 349 | params = { size = "M5", length = 8 } |
| 350 | aliases = ["ISO 4017 M5x8", "DIN 933 M5x8", "hex bolt M5x8", "hex head screw M5x8", "M5 x 8 mm"] |
| 351 | standard = "ISO 4017" |
| 352 | |
| 353 | [[presets]] |
| 354 | id = "M5x10" |
| 355 | title = "M5 × 10" |
| 356 | params = { size = "M5", length = 10 } |
| 357 | aliases = ["ISO 4017 M5x10", "DIN 933 M5x10", "hex bolt M5x10", "hex head screw M5x10", "M5 x 10 mm"] |
| 358 | standard = "ISO 4017" |
| 359 | |
| 360 | [[presets]] |
| 361 | id = "M5x12" |
| 362 | title = "M5 × 12" |
| 363 | params = { size = "M5", length = 12 } |
| 364 | aliases = ["ISO 4017 M5x12", "DIN 933 M5x12", "hex bolt M5x12", "hex head screw M5x12", "M5 x 12 mm"] |
| 365 | standard = "ISO 4017" |
| 366 | |
| 367 | [[presets]] |
| 368 | id = "M5x16" |
| 369 | title = "M5 × 16" |
| 370 | params = { size = "M5", length = 16 } |
| 371 | aliases = ["ISO 4017 M5x16", "DIN 933 M5x16", "hex bolt M5x16", "hex head screw M5x16", "M5 x 16 mm"] |
| 372 | standard = "ISO 4017" |
| 373 | |
| 374 | [[presets]] |
| 375 | id = "M5x20" |
| 376 | title = "M5 × 20" |
| 377 | params = { size = "M5", length = 20 } |
| 378 | aliases = ["ISO 4017 M5x20", "DIN 933 M5x20", "hex bolt M5x20", "hex head screw M5x20", "M5 x 20 mm"] |
| 379 | standard = "ISO 4017" |
| 380 | |
| 381 | [[presets]] |
| 382 | id = "M5x25" |
| 383 | title = "M5 × 25" |
| 384 | params = { size = "M5", length = 25 } |
| 385 | aliases = ["ISO 4017 M5x25", "DIN 933 M5x25", "hex bolt M5x25", "hex head screw M5x25", "M5 x 25 mm"] |
| 386 | standard = "ISO 4017" |
| 387 | |
| 388 | [[presets]] |
| 389 | id = "M5x30" |
| 390 | title = "M5 × 30" |
| 391 | params = { size = "M5", length = 30 } |
| 392 | aliases = ["ISO 4017 M5x30", "DIN 933 M5x30", "hex bolt M5x30", "hex head screw M5x30", "M5 x 30 mm"] |
| 393 | standard = "ISO 4017" |
| 394 | |
| 395 | [[presets]] |
| 396 | id = "M5x35" |
| 397 | title = "M5 × 35" |
| 398 | params = { size = "M5", length = 35 } |
| 399 | aliases = ["ISO 4017 M5x35", "DIN 933 M5x35", "hex bolt M5x35", "hex head screw M5x35", "M5 x 35 mm"] |
| 400 | standard = "ISO 4017" |
| 401 | |
| 402 | [[presets]] |
| 403 | id = "M5x40" |
| 404 | title = "M5 × 40" |
| 405 | params = { size = "M5", length = 40 } |
| 406 | aliases = ["ISO 4017 M5x40", "DIN 933 M5x40", "hex bolt M5x40", "hex head screw M5x40", "M5 x 40 mm"] |
| 407 | standard = "ISO 4017" |
| 408 | |
| 409 | [[presets]] |
| 410 | id = "M5x50" |
| 411 | title = "M5 × 50" |
| 412 | params = { size = "M5", length = 50 } |
| 413 | aliases = ["ISO 4017 M5x50", "DIN 933 M5x50", "hex bolt M5x50", "hex head screw M5x50", "M5 x 50 mm"] |
| 414 | standard = "ISO 4017" |
| 415 | |
| 416 | [[presets]] |
| 417 | id = "M6x4" |
| 418 | title = "M6 × 4" |
| 419 | params = { size = "M6", length = 4 } |
| 420 | aliases = ["ISO 4017 M6x4", "DIN 933 M6x4", "hex bolt M6x4", "hex head screw M6x4", "M6 x 4 mm"] |
| 421 | standard = "ISO 4017" |
| 422 | |
| 423 | [[presets]] |
| 424 | id = "M6x5" |
| 425 | title = "M6 × 5" |
| 426 | params = { size = "M6", length = 5 } |
| 427 | aliases = ["ISO 4017 M6x5", "DIN 933 M6x5", "hex bolt M6x5", "hex head screw M6x5", "M6 x 5 mm"] |
| 428 | standard = "ISO 4017" |
| 429 | |
| 430 | [[presets]] |
| 431 | id = "M6x6" |
| 432 | title = "M6 × 6" |
| 433 | params = { size = "M6", length = 6 } |
| 434 | aliases = ["ISO 4017 M6x6", "DIN 933 M6x6", "hex bolt M6x6", "hex head screw M6x6", "M6 x 6 mm"] |
| 435 | standard = "ISO 4017" |
| 436 | |
| 437 | [[presets]] |
| 438 | id = "M6x8" |
| 439 | title = "M6 × 8" |
| 440 | params = { size = "M6", length = 8 } |
| 441 | aliases = ["ISO 4017 M6x8", "DIN 933 M6x8", "hex bolt M6x8", "hex head screw M6x8", "M6 x 8 mm"] |
| 442 | standard = "ISO 4017" |
| 443 | |
| 444 | [[presets]] |
| 445 | id = "M6x10" |
| 446 | title = "M6 × 10" |
| 447 | params = { size = "M6", length = 10 } |
| 448 | aliases = ["ISO 4017 M6x10", "DIN 933 M6x10", "hex bolt M6x10", "hex head screw M6x10", "M6 x 10 mm"] |
| 449 | standard = "ISO 4017" |
| 450 | |
| 451 | [[presets]] |
| 452 | id = "M6x12" |
| 453 | title = "M6 × 12" |
| 454 | params = { size = "M6", length = 12 } |
| 455 | aliases = ["ISO 4017 M6x12", "DIN 933 M6x12", "hex bolt M6x12", "hex head screw M6x12", "M6 x 12 mm"] |
| 456 | standard = "ISO 4017" |
| 457 | |
| 458 | [[presets]] |
| 459 | id = "M6x16" |
| 460 | title = "M6 × 16" |
| 461 | params = { size = "M6", length = 16 } |
| 462 | aliases = ["ISO 4017 M6x16", "DIN 933 M6x16", "hex bolt M6x16", "hex head screw M6x16", "M6 x 16 mm"] |
| 463 | standard = "ISO 4017" |
| 464 | |
| 465 | [[presets]] |
| 466 | id = "M6x20" |
| 467 | title = "M6 × 20" |
| 468 | params = { size = "M6", length = 20 } |
| 469 | aliases = ["ISO 4017 M6x20", "DIN 933 M6x20", "hex bolt M6x20", "hex head screw M6x20", "M6 x 20 mm"] |
| 470 | standard = "ISO 4017" |
| 471 | |
| 472 | [[presets]] |
| 473 | id = "M6x25" |
| 474 | title = "M6 × 25" |
| 475 | params = { size = "M6", length = 25 } |
| 476 | aliases = ["ISO 4017 M6x25", "DIN 933 M6x25", "hex bolt M6x25", "hex head screw M6x25", "M6 hex head cap screw", "ISO4017 M6x25"] |
| 477 | standard = "ISO 4017" |
| 478 | |
| 479 | [[presets]] |
| 480 | id = "M6x30" |
| 481 | title = "M6 × 30" |
| 482 | params = { size = "M6", length = 30 } |
| 483 | aliases = ["ISO 4017 M6x30", "DIN 933 M6x30", "hex bolt M6x30", "hex head screw M6x30", "M6 x 30 mm"] |
| 484 | standard = "ISO 4017" |
| 485 | |
| 486 | [[presets]] |
| 487 | id = "M6x35" |
| 488 | title = "M6 × 35" |
| 489 | params = { size = "M6", length = 35 } |
| 490 | aliases = ["ISO 4017 M6x35", "DIN 933 M6x35", "hex bolt M6x35", "hex head screw M6x35", "M6 x 35 mm"] |
| 491 | standard = "ISO 4017" |
| 492 | |
| 493 | [[presets]] |
| 494 | id = "M6x40" |
| 495 | title = "M6 × 40" |
| 496 | params = { size = "M6", length = 40 } |
| 497 | aliases = ["ISO 4017 M6x40", "DIN 933 M6x40", "hex bolt M6x40", "hex head screw M6x40", "M6 x 40 mm"] |
| 498 | standard = "ISO 4017" |
| 499 | |
| 500 | [[presets]] |
| 501 | id = "M6x50" |
| 502 | title = "M6 × 50" |
| 503 | params = { size = "M6", length = 50 } |
| 504 | aliases = ["ISO 4017 M6x50", "DIN 933 M6x50", "hex bolt M6x50", "hex head screw M6x50", "M6 x 50 mm"] |
| 505 | standard = "ISO 4017" |
| 506 | |
| 507 | [[presets]] |
| 508 | id = "M8x4" |
| 509 | title = "M8 × 4" |
| 510 | params = { size = "M8", length = 4 } |
| 511 | aliases = ["ISO 4017 M8x4", "DIN 933 M8x4", "hex bolt M8x4", "hex head screw M8x4", "M8 x 4 mm"] |
| 512 | standard = "ISO 4017" |
| 513 | |
| 514 | [[presets]] |
| 515 | id = "M8x5" |
| 516 | title = "M8 × 5" |
| 517 | params = { size = "M8", length = 5 } |
| 518 | aliases = ["ISO 4017 M8x5", "DIN 933 M8x5", "hex bolt M8x5", "hex head screw M8x5", "M8 x 5 mm"] |
| 519 | standard = "ISO 4017" |
| 520 | |
| 521 | [[presets]] |
| 522 | id = "M8x6" |
| 523 | title = "M8 × 6" |
| 524 | params = { size = "M8", length = 6 } |
| 525 | aliases = ["ISO 4017 M8x6", "DIN 933 M8x6", "hex bolt M8x6", "hex head screw M8x6", "M8 x 6 mm"] |
| 526 | standard = "ISO 4017" |
| 527 | |
| 528 | [[presets]] |
| 529 | id = "M8x8" |
| 530 | title = "M8 × 8" |
| 531 | params = { size = "M8", length = 8 } |
| 532 | aliases = ["ISO 4017 M8x8", "DIN 933 M8x8", "hex bolt M8x8", "hex head screw M8x8", "M8 x 8 mm"] |
| 533 | standard = "ISO 4017" |
| 534 | |
| 535 | [[presets]] |
| 536 | id = "M8x10" |
| 537 | title = "M8 × 10" |
| 538 | params = { size = "M8", length = 10 } |
| 539 | aliases = ["ISO 4017 M8x10", "DIN 933 M8x10", "hex bolt M8x10", "hex head screw M8x10", "M8 x 10 mm"] |
| 540 | standard = "ISO 4017" |
| 541 | |
| 542 | [[presets]] |
| 543 | id = "M8x12" |
| 544 | title = "M8 × 12" |
| 545 | params = { size = "M8", length = 12 } |
| 546 | aliases = ["ISO 4017 M8x12", "DIN 933 M8x12", "hex bolt M8x12", "hex head screw M8x12", "M8 x 12 mm"] |
| 547 | standard = "ISO 4017" |
| 548 | |
| 549 | [[presets]] |
| 550 | id = "M8x16" |
| 551 | title = "M8 × 16" |
| 552 | params = { size = "M8", length = 16 } |
| 553 | aliases = ["ISO 4017 M8x16", "DIN 933 M8x16", "hex bolt M8x16", "hex head screw M8x16", "M8 x 16 mm"] |
| 554 | standard = "ISO 4017" |
| 555 | |
| 556 | [[presets]] |
| 557 | id = "M8x20" |
| 558 | title = "M8 × 20" |
| 559 | params = { size = "M8", length = 20 } |
| 560 | aliases = ["ISO 4017 M8x20", "DIN 933 M8x20", "hex bolt M8x20", "hex head screw M8x20", "M8 x 20 mm"] |
| 561 | standard = "ISO 4017" |
| 562 | |
| 563 | [[presets]] |
| 564 | id = "M8x25" |
| 565 | title = "M8 × 25" |
| 566 | params = { size = "M8", length = 25 } |
| 567 | aliases = ["ISO 4017 M8x25", "DIN 933 M8x25", "hex bolt M8x25", "hex head screw M8x25", "M8 x 25 mm"] |
| 568 | standard = "ISO 4017" |
| 569 | |
| 570 | [[presets]] |
| 571 | id = "M8x30" |
| 572 | title = "M8 × 30" |
| 573 | params = { size = "M8", length = 30 } |
| 574 | aliases = ["ISO 4017 M8x30", "DIN 933 M8x30", "hex bolt M8x30", "hex head screw M8x30", "M8 x 30 mm"] |
| 575 | standard = "ISO 4017" |
| 576 | |
| 577 | [[presets]] |
| 578 | id = "M8x35" |
| 579 | title = "M8 × 35" |
| 580 | params = { size = "M8", length = 35 } |
| 581 | aliases = ["ISO 4017 M8x35", "DIN 933 M8x35", "hex bolt M8x35", "hex head screw M8x35", "M8 x 35 mm"] |
| 582 | standard = "ISO 4017" |
| 583 | |
| 584 | [[presets]] |
| 585 | id = "M8x40" |
| 586 | title = "M8 × 40" |
| 587 | params = { size = "M8", length = 40 } |
| 588 | aliases = ["ISO 4017 M8x40", "DIN 933 M8x40", "hex bolt M8x40", "hex head screw M8x40", "M8 x 40 mm"] |
| 589 | standard = "ISO 4017" |
| 590 | |
| 591 | [[presets]] |
| 592 | id = "M8x50" |
| 593 | title = "M8 × 50" |
| 594 | params = { size = "M8", length = 50 } |
| 595 | aliases = ["ISO 4017 M8x50", "DIN 933 M8x50", "hex bolt M8x50", "hex head screw M8x50", "M8 x 50 mm"] |
| 596 | standard = "ISO 4017" |
| 597 |
Hexagon head screw threaded up to the head, metric coarse thread, M1.6 to M36, at any length. Presets cover the common catalogue sizes (M6 × 20, M8 × 40, ...).
Envelope for assemblies and clearance checks:
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.
| Parameter | Meaning |
|---|---|
size |
Thread size, M1.6 to M36 |
length |
Nominal length l under the head, mm |
material |
steel (property class 8.8, zinc plated), stainless-a2, stainless-a4 (ISO 3506-1) |
ISO 4017:2022, Fasteners — Hexagon head screws — Product grades A and B, Tables 1 to 3, pp. 3-5: d, s (nominal = max), k (nominal), read from the official preview (https://cdn.standards.iteh.ai/samples/72585/1179998ddd594550a909d6e13c416f3e/ISO-4017-2022.pdf; M30 and M36 are product grade B, Table 3). The same values in ISO 4017:2011, Table 1 (https://fpg-co.com/Standards/ISO 4017-2011 Hexagon head screws — Product grades A and B.pdf) and, for M1.6 to M6, the ISO 4017:2014 preview. fasten.it's DIN EN ISO 4017:2014 page gives k 19 and 23 for M30 and M36, which are DIN 933 heights and contradict its own k min (18.28, 22.08); the ISO tables' 18.7 and 22.5 are used. DIN 933 uses the same s for these sizes except M10 (17), M12 (19), M14 (22) and M22; this recipe follows ISO 4017.
| Size | s | k |
|---|---|---|
| M1.6 | 3.2 | 1.1 |
| M2 | 4.0 | 1.4 |
| M2.5 | 5.0 | 1.7 |
| M3 | 5.5 | 2.0 |
| M4 | 7.0 | 2.8 |
| M5 | 8.0 | 3.5 |
| M6 | 10.0 | 4.0 |
| M8 | 13.0 | 5.3 |
| M10 | 16.0 | 6.4 |
| M12 | 18.0 | 7.5 |
| M14 | 21.0 | 8.8 |
| M16 | 24.0 | 10.0 |
| M20 | 30.0 | 12.5 |
| M24 | 36.0 | 15.0 |
| M30 | 46.0 | 18.7 |
| M36 | 55.0 | 22.5 |
Preset list: sizes and lengths of the step.parts catalogue (MIT), see library/NOTICE.md.
| 1 | # Hex head screw (ISO 4017 / DIN 933) |
| 2 | |
| 3 | Hexagon head screw threaded up to the head, metric coarse thread, M1.6 to M36, at any length. Presets cover the |
| 4 | common catalogue sizes (M6 × 20, M8 × 40, ...). |
| 5 | |
| 6 | ## Geometry |
| 7 | |
| 8 | Envelope for assemblies and clearance checks: |
| 9 | |
| 10 | - hexagon head, width across flats **s** (nominal), height **k** (nominal), sharp corners (across corners |
| 11 | s / cos 30°, the largest the head can be); two flats parallel to the X axis; |
| 12 | - plain shank at the nominal thread diameter **d**, length **l** (`length`); the thread is not modelled. |
| 13 | |
| 14 | The head's bearing face is on the XY plane at the origin, the head above it, the shank along -Z. |
| 15 | |
| 16 | ## Parameters |
| 17 | |
| 18 | | Parameter | Meaning | |
| 19 | |---|---| |
| 20 | | `size` | Thread size, M1.6 to M36 | |
| 21 | | `length` | Nominal length l under the head, mm | |
| 22 | | `material` | `steel` (property class 8.8, zinc plated), `stainless-a2`, `stainless-a4` (ISO 3506-1) | |
| 23 | |
| 24 | ## Source |
| 25 | |
| 26 | ISO 4017:2022, *Fasteners — Hexagon head screws — Product grades A and B*, Tables 1 to 3, pp. 3-5: d, s (nominal = |
| 27 | max), k (nominal), read from the official preview |
| 28 | (<https://cdn.standards.iteh.ai/samples/72585/1179998ddd594550a909d6e13c416f3e/ISO-4017-2022.pdf>; M30 and M36 are |
| 29 | product grade B, Table 3). The same values in ISO 4017:2011, Table 1 |
| 30 | (<https://fpg-co.com/Standards/ISO%204017-2011%20Hexagon%20head%20screws%20%E2%80%94%20Product%20grades%20A%20and%20B.pdf>) |
| 31 | and, for M1.6 to M6, the ISO 4017:2014 preview. fasten.it's DIN EN ISO 4017:2014 page gives k 19 and 23 for M30 and |
| 32 | M36, which are DIN 933 heights and contradict its own k min (18.28, 22.08); the ISO tables' 18.7 and 22.5 are used. |
| 33 | DIN 933 uses the same s for these sizes except M10 (17), M12 (19), M14 (22) and M22; this recipe follows ISO 4017. |
| 34 | |
| 35 | | Size | s | k | |
| 36 | |---|---|---| |
| 37 | | M1.6 | 3.2 | 1.1 | |
| 38 | | M2 | 4.0 | 1.4 | |
| 39 | | M2.5 | 5.0 | 1.7 | |
| 40 | | M3 | 5.5 | 2.0 | |
| 41 | | M4 | 7.0 | 2.8 | |
| 42 | | M5 | 8.0 | 3.5 | |
| 43 | | M6 | 10.0 | 4.0 | |
| 44 | | M8 | 13.0 | 5.3 | |
| 45 | | M10 | 16.0 | 6.4 | |
| 46 | | M12 | 18.0 | 7.5 | |
| 47 | | M14 | 21.0 | 8.8 | |
| 48 | | M16 | 24.0 | 10.0 | |
| 49 | | M20 | 30.0 | 12.5 | |
| 50 | | M24 | 36.0 | 15.0 | |
| 51 | | M30 | 46.0 | 18.7 | |
| 52 | | M36 | 55.0 | 22.5 | |
| 53 | |
| 54 | Preset list: sizes and lengths of the step.parts catalogue (MIT), see `library/NOTICE.md`. |
| 55 |
ISO 4017 (DIN 933) hexagon head screw, thread to the head. Envelope geometry for assemblies: hexagon head (s, k, sharp corners) 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 4017:2014 Table 1 (see the README).
Hexagon head screw threaded up to the head, metric coarse thread, M1.6 to M36, at any length. Presets cover the common catalogue sizes (M6 × 20, M8 × 40, ...).
Envelope for assemblies and clearance checks:
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.
| Parameter | Meaning |
|---|---|
size |
Thread size, M1.6 to M36 |
length |
Nominal length l under the head, mm |
material |
steel (property class 8.8, zinc plated), stainless-a2, stainless-a4 (ISO 3506-1) |
ISO 4017:2022, Fasteners — Hexagon head screws — Product grades A and B, Tables 1 to 3, pp. 3-5: d, s (nominal = max), k (nominal), read from the official preview (https://cdn.standards.iteh.ai/samples/72585/1179998ddd594550a909d6e13c416f3e/ISO-4017-2022.pdf; M30 and M36 are product grade B, Table 3). The same values in ISO 4017:2011, Table 1 (https://fpg-co.com/Standards/ISO 4017-2011 Hexagon head screws — Product grades A and B.pdf) and, for M1.6 to M6, the ISO 4017:2014 preview. fasten.it's DIN EN ISO 4017:2014 page gives k 19 and 23 for M30 and M36, which are DIN 933 heights and contradict its own k min (18.28, 22.08); the ISO tables' 18.7 and 22.5 are used. DIN 933 uses the same s for these sizes except M10 (17), M12 (19), M14 (22) and M22; this recipe follows ISO 4017.
| Size | s | k |
|---|---|---|
| M1.6 | 3.2 | 1.1 |
| M2 | 4.0 | 1.4 |
| M2.5 | 5.0 | 1.7 |
| M3 | 5.5 | 2.0 |
| M4 | 7.0 | 2.8 |
| M5 | 8.0 | 3.5 |
| M6 | 10.0 | 4.0 |
| M8 | 13.0 | 5.3 |
| M10 | 16.0 | 6.4 |
| M12 | 18.0 | 7.5 |
| M14 | 21.0 | 8.8 |
| M16 | 24.0 | 10.0 |
| M20 | 30.0 | 12.5 |
| M24 | 36.0 | 15.0 |
| M30 | 46.0 | 18.7 |
| M36 | 55.0 | 22.5 |
Preset list: sizes and lengths of the step.parts catalogue (MIT), see library/NOTICE.md.
Materials and finishes: each part is made of its standard's engineering material, with its usual finish.
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.
Hexagon socket button head screw, ISO 7380-1, M3 to M16, any length, with catalogue sizes as presets.
Hexagon socket countersunk head screw, ISO 10642 / DIN 7991, M3 to M12, any length, with catalogue sizes as presets.
Pan head screw with cross recess, ISO 7045, M2 to M8, any length.