steve/metric-nut
Metric nuts: hex ISO 4032, thin ISO 4035, nylon-insert DIN 985, all-metal DIN 980, flange DIN 6923, cap DIN 1587, square DIN 557.
Hex nut trap: a hexagonal prism to cut a pocket for a metric hexagon nut, M1.6 to M12, DIN 934 or ISO 4032 nut sizes.
| 1 | """Hex nut trap: a hexagonal prism to cut a pocket for a metric hexagon nut with, DIN 934 or ISO 4032 nut sizes. |
| 2 | Axis along Z, the top face on the XY plane, the prism running down for the depth; two corners of the hexagon lie on the X |
| 3 | axis. Dimensions in the README.""" |
| 4 | import math |
| 5 | |
| 6 | from steve import Model |
| 7 | |
| 8 | thread = "M3" # Thread |
| 9 | nut = "DIN 934" # Nut standard: DIN 934 or ISO 4032 |
| 10 | clearance = 0 # mm Gap added on each flat (0: the nut's own largest width across flats) |
| 11 | depth = 0 # mm Depth (0: the nut's largest height m) |
| 12 | |
| 13 | # thread: (s nom = max, m nom = max) in mm, the nut's width across flats and height. |
| 14 | # DIN 934: Westfield Fasteners product specification "DIN 934 - Full Hex Nuts (Standard Pitch)", Table 1, Dimensions & |
| 15 | # Tolerances according to DIN 934 (PDF dated 2026-01-02, page 1, https://westfieldfasteners.co.uk/Standards/Nut-Hex-M.pdf). |
| 16 | # ISO 4032: the table "according to EN ISO 4032" at https://www.fasteners.eu/standards/DIN/934/ (rows m max. and s nominal = |
| 17 | # max.; read 2026-11-14), the same values as the metric-nut part's ISO 4032 table. |
| 18 | NUTS = { |
| 19 | "DIN 934": {"M1.6": (3.2, 1.3), "M2": (4, 1.6), "M2.5": (5, 2), "M3": (5.5, 2.4), "M3.5": (6, 2.8), "M4": (7, 3.2), "M5": (8, 4), "M6": (10, 5), |
| 20 | "M8": (13, 6.5), "M10": (17, 8), "M12": (19, 10)}, |
| 21 | "ISO 4032": {"M1.6": (3.2, 1.3), "M2": (4, 1.6), "M2.5": (5, 2), "M3": (5.5, 2.4), "M3.5": (6, 2.8), "M4": (7, 3.2), "M5": (8, 4.7), "M6": (10, 5.2), |
| 22 | "M8": (13, 6.8), "M10": (16, 8.4), "M12": (18, 10.8)}, |
| 23 | } |
| 24 | |
| 25 | if nut not in NUTS: |
| 26 | raise ValueError(f"no nut standard {nut!r}: {', '.join(NUTS)}") |
| 27 | if thread not in NUTS[nut]: |
| 28 | raise ValueError(f"no {nut} nut {thread!r} here: {', '.join(NUTS[nut])}") |
| 29 | if clearance < 0 or depth < 0: |
| 30 | raise ValueError("clearance and depth can't be negative") |
| 31 | s, m = NUTS[nut][thread] |
| 32 | flats = s + 2 * clearance |
| 33 | deep = depth if depth > 0 else m |
| 34 | corner = flats / math.sqrt(3) # centre to corner of a hexagon with this width across flats |
| 35 | outline = [(corner * math.cos(math.radians(60 * i)), corner * math.sin(math.radians(60 * i))) for i in range(6)] |
| 36 | |
| 37 | model = Model() |
| 38 | with model.sketch("trap_sketch", on="XY", name="Nut trap") as sk: |
| 39 | sk.polyline("trap_outline", outline, closed=True) |
| 40 | model.extrude("trap", "trap_sketch", distance=-deep, name="Nut trap") |
| 41 | result = model.result() |
| 42 |
| 1 | name = "steve/nut-trap" |
| 2 | version = "1.0.0" |
| 3 | runtime = "steve" |
| 4 | license = "MIT" |
| 5 | summary = "Hex nut trap: a hexagonal prism to cut a pocket for a metric hexagon nut, M1.6 to M12, DIN 934 or ISO 4032 nut sizes." |
| 6 | description = """A hexagonal prism to cut a nut pocket with: the nut's largest width across flats and height from DIN 934 or ISO 4032, with a gap of your choice on each flat and a depth of your choice. See the README.""" |
| 7 | tags = ["nut-trap", "nut-pocket", "captive-nut", "hex-nut", "din-934", "iso-4032", "fastener", "cad-helper", "metric"] |
| 8 | |
| 9 | [parameters.thread] |
| 10 | type = "choice" |
| 11 | default = "M3" |
| 12 | choices = ["M1.6", "M2", "M2.5", "M3", "M3.5", "M4", "M5", "M6", "M8", "M10", "M12"] |
| 13 | label = "Thread" |
| 14 | |
| 15 | [parameters.nut] |
| 16 | type = "choice" |
| 17 | default = "DIN 934" |
| 18 | choices = ["DIN 934", "ISO 4032"] |
| 19 | label = "Nut standard" |
| 20 | description = "The two differ in height at M5, M6, M8, M10 and M12, and in width across flats at M10 and M12." |
| 21 | |
| 22 | [parameters.clearance] |
| 23 | type = "number" |
| 24 | default = 0 |
| 25 | min = 0 |
| 26 | max = 2 |
| 27 | unit = "mm" |
| 28 | label = "Gap on each flat" |
| 29 | description = "Added on every flat, so the pocket is twice this wider across flats than the nut's largest size. 0 cuts the nut's own largest size." |
| 30 | |
| 31 | [parameters.depth] |
| 32 | type = "number" |
| 33 | default = 0 |
| 34 | min = 0 |
| 35 | max = 1000 |
| 36 | unit = "mm" |
| 37 | label = "Depth" |
| 38 | description = "0 uses the nut's largest height." |
| 39 | |
| 40 | [[presets]] |
| 41 | id = "M2-DIN934" |
| 42 | title = "M2 hex nut trap, DIN 934 nut: 4 across flats, 1.6 deep" |
| 43 | params = { thread = "M2", nut = "DIN 934" } |
| 44 | aliases = ["M2 nut trap", "M2 hex nut trap", "M2 nut pocket", "M2 captive nut pocket", "M2 hex nut trap cutter", "DIN 934 M2 nut trap", "M2 nut trap 4 mm"] |
| 45 | standard = "DIN 934" |
| 46 | |
| 47 | [[presets]] |
| 48 | id = "M2.5-DIN934" |
| 49 | title = "M2.5 hex nut trap, DIN 934 nut: 5 across flats, 2 deep" |
| 50 | params = { thread = "M2.5", nut = "DIN 934" } |
| 51 | aliases = ["M2.5 nut trap", "M2.5 hex nut trap", "M2.5 nut pocket", "M2.5 captive nut pocket", "M2.5 hex nut trap cutter", "DIN 934 M2.5 nut trap", "M2.5 nut trap 5 mm"] |
| 52 | standard = "DIN 934" |
| 53 | |
| 54 | [[presets]] |
| 55 | id = "M3-DIN934" |
| 56 | title = "M3 hex nut trap, DIN 934 nut: 5.5 across flats, 2.4 deep" |
| 57 | params = { thread = "M3", nut = "DIN 934" } |
| 58 | aliases = ["M3 nut trap", "M3 hex nut trap", "M3 nut pocket", "M3 captive nut pocket", "M3 hex nut trap cutter", "DIN 934 M3 nut trap", "M3 nut trap 5.5 mm"] |
| 59 | standard = "DIN 934" |
| 60 | |
| 61 | [[presets]] |
| 62 | id = "M4-DIN934" |
| 63 | title = "M4 hex nut trap, DIN 934 nut: 7 across flats, 3.2 deep" |
| 64 | params = { thread = "M4", nut = "DIN 934" } |
| 65 | aliases = ["M4 nut trap", "M4 hex nut trap", "M4 nut pocket", "M4 captive nut pocket", "M4 hex nut trap cutter", "DIN 934 M4 nut trap", "M4 nut trap 7 mm"] |
| 66 | standard = "DIN 934" |
| 67 | |
| 68 | [[presets]] |
| 69 | id = "M5-DIN934" |
| 70 | title = "M5 hex nut trap, DIN 934 nut: 8 across flats, 4 deep" |
| 71 | params = { thread = "M5", nut = "DIN 934" } |
| 72 | aliases = ["M5 nut trap", "M5 hex nut trap", "M5 nut pocket", "M5 captive nut pocket", "M5 hex nut trap cutter", "DIN 934 M5 nut trap", "M5 nut trap 8 mm"] |
| 73 | standard = "DIN 934" |
| 74 | |
| 75 | [[presets]] |
| 76 | id = "M6-DIN934" |
| 77 | title = "M6 hex nut trap, DIN 934 nut: 10 across flats, 5 deep" |
| 78 | params = { thread = "M6", nut = "DIN 934" } |
| 79 | aliases = ["M6 nut trap", "M6 hex nut trap", "M6 nut pocket", "M6 captive nut pocket", "M6 hex nut trap cutter", "DIN 934 M6 nut trap", "M6 nut trap 10 mm"] |
| 80 | standard = "DIN 934" |
| 81 | |
| 82 | [[presets]] |
| 83 | id = "M8-DIN934" |
| 84 | title = "M8 hex nut trap, DIN 934 nut: 13 across flats, 6.5 deep" |
| 85 | params = { thread = "M8", nut = "DIN 934" } |
| 86 | aliases = ["M8 nut trap", "M8 hex nut trap", "M8 nut pocket", "M8 captive nut pocket", "M8 hex nut trap cutter", "DIN 934 M8 nut trap", "M8 nut trap 13 mm"] |
| 87 | standard = "DIN 934" |
| 88 | |
| 89 | [[presets]] |
| 90 | id = "M1.6-DIN934" |
| 91 | title = "M1.6 hex nut trap, DIN 934 nut: 3.2 across flats, 1.3 deep" |
| 92 | params = { thread = "M1.6", nut = "DIN 934" } |
| 93 | aliases = ["M1.6 nut trap", "M1.6 hex nut trap", "M1.6 nut pocket", "M1.6 captive nut pocket", "M1.6 hex nut trap cutter", "DIN 934 M1.6 nut trap", "M1.6 nut trap 3.2 mm"] |
| 94 | standard = "DIN 934" |
| 95 | |
| 96 | [[presets]] |
| 97 | id = "M3.5-DIN934" |
| 98 | title = "M3.5 hex nut trap, DIN 934 nut: 6 across flats, 2.8 deep" |
| 99 | params = { thread = "M3.5", nut = "DIN 934" } |
| 100 | aliases = ["M3.5 nut trap", "M3.5 hex nut trap", "M3.5 nut pocket", "M3.5 captive nut pocket", "M3.5 hex nut trap cutter", "DIN 934 M3.5 nut trap", "M3.5 nut trap 6 mm"] |
| 101 | standard = "DIN 934" |
| 102 | |
| 103 | [[presets]] |
| 104 | id = "M10-DIN934" |
| 105 | title = "M10 hex nut trap, DIN 934 nut: 17 across flats, 8 deep" |
| 106 | params = { thread = "M10", nut = "DIN 934" } |
| 107 | aliases = ["M10 nut trap", "M10 hex nut trap", "M10 nut pocket", "M10 captive nut pocket", "M10 hex nut trap cutter", "DIN 934 M10 nut trap", "M10 nut trap 17 mm"] |
| 108 | standard = "DIN 934" |
| 109 | |
| 110 | [[presets]] |
| 111 | id = "M12-DIN934" |
| 112 | title = "M12 hex nut trap, DIN 934 nut: 19 across flats, 10 deep" |
| 113 | params = { thread = "M12", nut = "DIN 934" } |
| 114 | aliases = ["M12 nut trap", "M12 hex nut trap", "M12 nut pocket", "M12 captive nut pocket", "M12 hex nut trap cutter", "DIN 934 M12 nut trap", "M12 nut trap 19 mm"] |
| 115 | standard = "DIN 934" |
| 116 | |
| 117 | [[presets]] |
| 118 | id = "M1.6-ISO4032" |
| 119 | title = "M1.6 hex nut trap, ISO 4032 nut: 3.2 across flats, 1.3 deep" |
| 120 | params = { thread = "M1.6", nut = "ISO 4032" } |
| 121 | aliases = ["M1.6 nut trap", "M1.6 hex nut trap", "M1.6 nut pocket", "M1.6 captive nut pocket", "M1.6 hex nut trap cutter", "ISO 4032 M1.6 nut trap", "M1.6 nut trap 3.2 mm"] |
| 122 | standard = "ISO 4032" |
| 123 | |
| 124 | [[presets]] |
| 125 | id = "M2-ISO4032" |
| 126 | title = "M2 hex nut trap, ISO 4032 nut: 4 across flats, 1.6 deep" |
| 127 | params = { thread = "M2", nut = "ISO 4032" } |
| 128 | aliases = ["M2 nut trap", "M2 hex nut trap", "M2 nut pocket", "M2 captive nut pocket", "M2 hex nut trap cutter", "ISO 4032 M2 nut trap", "M2 nut trap 4 mm"] |
| 129 | standard = "ISO 4032" |
| 130 | |
| 131 | [[presets]] |
| 132 | id = "M2.5-ISO4032" |
| 133 | title = "M2.5 hex nut trap, ISO 4032 nut: 5 across flats, 2 deep" |
| 134 | params = { thread = "M2.5", nut = "ISO 4032" } |
| 135 | aliases = ["M2.5 nut trap", "M2.5 hex nut trap", "M2.5 nut pocket", "M2.5 captive nut pocket", "M2.5 hex nut trap cutter", "ISO 4032 M2.5 nut trap", "M2.5 nut trap 5 mm"] |
| 136 | standard = "ISO 4032" |
| 137 | |
| 138 | [[presets]] |
| 139 | id = "M3-ISO4032" |
| 140 | title = "M3 hex nut trap, ISO 4032 nut: 5.5 across flats, 2.4 deep" |
| 141 | params = { thread = "M3", nut = "ISO 4032" } |
| 142 | aliases = ["M3 nut trap", "M3 hex nut trap", "M3 nut pocket", "M3 captive nut pocket", "M3 hex nut trap cutter", "ISO 4032 M3 nut trap", "M3 nut trap 5.5 mm"] |
| 143 | standard = "ISO 4032" |
| 144 | |
| 145 | [[presets]] |
| 146 | id = "M3.5-ISO4032" |
| 147 | title = "M3.5 hex nut trap, ISO 4032 nut: 6 across flats, 2.8 deep" |
| 148 | params = { thread = "M3.5", nut = "ISO 4032" } |
| 149 | aliases = ["M3.5 nut trap", "M3.5 hex nut trap", "M3.5 nut pocket", "M3.5 captive nut pocket", "M3.5 hex nut trap cutter", "ISO 4032 M3.5 nut trap", "M3.5 nut trap 6 mm"] |
| 150 | standard = "ISO 4032" |
| 151 | |
| 152 | [[presets]] |
| 153 | id = "M4-ISO4032" |
| 154 | title = "M4 hex nut trap, ISO 4032 nut: 7 across flats, 3.2 deep" |
| 155 | params = { thread = "M4", nut = "ISO 4032" } |
| 156 | aliases = ["M4 nut trap", "M4 hex nut trap", "M4 nut pocket", "M4 captive nut pocket", "M4 hex nut trap cutter", "ISO 4032 M4 nut trap", "M4 nut trap 7 mm"] |
| 157 | standard = "ISO 4032" |
| 158 | |
| 159 | [[presets]] |
| 160 | id = "M5-ISO4032" |
| 161 | title = "M5 hex nut trap, ISO 4032 nut: 8 across flats, 4.7 deep" |
| 162 | params = { thread = "M5", nut = "ISO 4032" } |
| 163 | aliases = ["M5 nut trap", "M5 hex nut trap", "M5 nut pocket", "M5 captive nut pocket", "M5 hex nut trap cutter", "ISO 4032 M5 nut trap", "M5 nut trap 8 mm"] |
| 164 | standard = "ISO 4032" |
| 165 | |
| 166 | [[presets]] |
| 167 | id = "M6-ISO4032" |
| 168 | title = "M6 hex nut trap, ISO 4032 nut: 10 across flats, 5.2 deep" |
| 169 | params = { thread = "M6", nut = "ISO 4032" } |
| 170 | aliases = ["M6 nut trap", "M6 hex nut trap", "M6 nut pocket", "M6 captive nut pocket", "M6 hex nut trap cutter", "ISO 4032 M6 nut trap", "M6 nut trap 10 mm"] |
| 171 | standard = "ISO 4032" |
| 172 | |
| 173 | [[presets]] |
| 174 | id = "M8-ISO4032" |
| 175 | title = "M8 hex nut trap, ISO 4032 nut: 13 across flats, 6.8 deep" |
| 176 | params = { thread = "M8", nut = "ISO 4032" } |
| 177 | aliases = ["M8 nut trap", "M8 hex nut trap", "M8 nut pocket", "M8 captive nut pocket", "M8 hex nut trap cutter", "ISO 4032 M8 nut trap", "M8 nut trap 13 mm"] |
| 178 | standard = "ISO 4032" |
| 179 | |
| 180 | [[presets]] |
| 181 | id = "M10-ISO4032" |
| 182 | title = "M10 hex nut trap, ISO 4032 nut: 16 across flats, 8.4 deep" |
| 183 | params = { thread = "M10", nut = "ISO 4032" } |
| 184 | aliases = ["M10 nut trap", "M10 hex nut trap", "M10 nut pocket", "M10 captive nut pocket", "M10 hex nut trap cutter", "ISO 4032 M10 nut trap", "M10 nut trap 16 mm"] |
| 185 | standard = "ISO 4032" |
| 186 | |
| 187 | [[presets]] |
| 188 | id = "M12-ISO4032" |
| 189 | title = "M12 hex nut trap, ISO 4032 nut: 18 across flats, 10.8 deep" |
| 190 | params = { thread = "M12", nut = "ISO 4032" } |
| 191 | aliases = ["M12 nut trap", "M12 hex nut trap", "M12 nut pocket", "M12 captive nut pocket", "M12 hex nut trap cutter", "ISO 4032 M12 nut trap", "M12 nut trap 18 mm"] |
| 192 | standard = "ISO 4032" |
| 193 |
A hexagonal prism to cut a pocket for a metric hexagon nut with. Its axis is along Z, its top face is on the XY plane, and it runs down for the depth. Two corners of the hexagon lie on the X axis.
metric-nut part's hexagon nut.| Thread | DIN 934 s | DIN 934 m | ISO 4032 s | ISO 4032 m |
|---|---|---|---|---|
| M1.6 | 3.2 | 1.3 | 3.2 | 1.3 |
| M2 | 4 | 1.6 | 4 | 1.6 |
| M2.5 | 5 | 2 | 5 | 2 |
| M3 | 5.5 | 2.4 | 5.5 | 2.4 |
| M3.5 | 6 | 2.8 | 6 | 2.8 |
| M4 | 7 | 3.2 | 7 | 3.2 |
| M5 | 8 | 4 | 8 | 4.7 |
| M6 | 10 | 5 | 10 | 5.2 |
| M8 | 13 | 6.5 | 13 | 6.8 |
| M10 | 17 | 8 | 16 | 8.4 |
| M12 | 19 | 10 | 18 | 10.8 |
The pocket's width across flats is s plus twice the gap; its corners follow from that (width across flats divided by the square root of 3, from the centre). Its depth is m unless you set one.
The gap and the depth are yours to set; neither standard gives a pocket size. With a gap of 0 the pocket is exactly the largest nut the standard allows, so a real nut (always at or under s) fits with whatever its own tolerance leaves.
The bolt hole through the pocket's floor (use the clearance-hole part), and any slot to slide the nut in from the side.
The old catalogue's negative_hex_nut_trap_M<n>_nominal entries (M2 to M8) give a width across flats and a height that are DIN 934's s and m for every size (M5 4, M6 5 and M8 6.5 high, where ISO 4032 has 4.7, 5.2 and 6.8). They map to the DIN 934 presets with no gap. They have no model to measure.
Its print_clearance_0p15mm and print_clearance_0p25mm entries name a clearance but not where it applies (on each flat or over the width across flats), give the same width as the nominal entries, and have no model to measure, so they are left out. Set the gap yourself. Its square nut, slot-in and side-insert pocket entries name only a thread and are left out for the same reason: no pocket size, slot length or clearance is given.
| 1 | # Nut trap |
| 2 | |
| 3 | A hexagonal prism to cut a pocket for a metric hexagon nut with. Its axis is along Z, its top face is on the XY plane, and it runs down for the depth. Two corners of the hexagon lie on the X axis. |
| 4 | |
| 5 | ## Source |
| 6 | |
| 7 | - **DIN 934 nuts:** Westfield Fasteners' product specification "DIN 934 - Full Hex Nuts (Standard Pitch)", Table 1, Dimensions & Tolerances according to DIN 934 (PDF dated 2026-01-02, page 1): <https://westfieldfasteners.co.uk/Standards/Nut-Hex-M.pdf>. Rows s nom=max and m nom=max. |
| 8 | - **ISO 4032 nuts:** the table "according to EN ISO 4032" at <https://www.fasteners.eu/standards/DIN/934/> (read 2026-11-14), rows s nominal = max. and m max. These are the same values as the `metric-nut` part's hexagon nut. |
| 9 | |
| 10 | | Thread | DIN 934 s | DIN 934 m | ISO 4032 s | ISO 4032 m | |
| 11 | |---|---|---|---|---| |
| 12 | | M1.6 | 3.2 | 1.3 | 3.2 | 1.3 | |
| 13 | | M2 | 4 | 1.6 | 4 | 1.6 | |
| 14 | | M2.5 | 5 | 2 | 5 | 2 | |
| 15 | | M3 | 5.5 | 2.4 | 5.5 | 2.4 | |
| 16 | | M3.5 | 6 | 2.8 | 6 | 2.8 | |
| 17 | | M4 | 7 | 3.2 | 7 | 3.2 | |
| 18 | | M5 | 8 | 4 | 8 | 4.7 | |
| 19 | | M6 | 10 | 5 | 10 | 5.2 | |
| 20 | | M8 | 13 | 6.5 | 13 | 6.8 | |
| 21 | | M10 | 17 | 8 | 16 | 8.4 | |
| 22 | | M12 | 19 | 10 | 18 | 10.8 | |
| 23 | |
| 24 | The pocket's width across flats is s plus twice the gap; its corners follow from that (width across flats divided by the square root of 3, from the centre). Its depth is m unless you set one. |
| 25 | |
| 26 | The gap and the depth are yours to set; neither standard gives a pocket size. With a gap of 0 the pocket is exactly the largest nut the standard allows, so a real nut (always at or under s) fits with whatever its own tolerance leaves. |
| 27 | |
| 28 | ## Not modelled |
| 29 | |
| 30 | The bolt hole through the pocket's floor (use the `clearance-hole` part), and any slot to slide the nut in from the side. |
| 31 | |
| 32 | ## Catalogue models |
| 33 | |
| 34 | The old catalogue's `negative_hex_nut_trap_M<n>_nominal` entries (M2 to M8) give a width across flats and a height that are DIN 934's s and m for every size (M5 4, M6 5 and M8 6.5 high, where ISO 4032 has 4.7, 5.2 and 6.8). They map to the DIN 934 presets with no gap. They have no model to measure. |
| 35 | |
| 36 | Its `print_clearance_0p15mm` and `print_clearance_0p25mm` entries name a clearance but not where it applies (on each flat or over the width across flats), give the same width as the nominal entries, and have no model to measure, so they are left out. Set the gap yourself. Its square nut, slot-in and side-insert pocket entries name only a thread and are left out for the same reason: no pocket size, slot length or clearance is given. |
| 37 |
A hexagonal prism to cut a nut pocket with: the nut's largest width across flats and height from DIN 934 or ISO 4032, with a gap of your choice on each flat and a depth of your choice. See the README.
A hexagonal prism to cut a pocket for a metric hexagon nut with. Its axis is along Z, its top face is on the XY plane, and it runs down for the depth. Two corners of the hexagon lie on the X axis.
metric-nut part's hexagon nut.| Thread | DIN 934 s | DIN 934 m | ISO 4032 s | ISO 4032 m |
|---|---|---|---|---|
| M1.6 | 3.2 | 1.3 | 3.2 | 1.3 |
| M2 | 4 | 1.6 | 4 | 1.6 |
| M2.5 | 5 | 2 | 5 | 2 |
| M3 | 5.5 | 2.4 | 5.5 | 2.4 |
| M3.5 | 6 | 2.8 | 6 | 2.8 |
| M4 | 7 | 3.2 | 7 | 3.2 |
| M5 | 8 | 4 | 8 | 4.7 |
| M6 | 10 | 5 | 10 | 5.2 |
| M8 | 13 | 6.5 | 13 | 6.8 |
| M10 | 17 | 8 | 16 | 8.4 |
| M12 | 19 | 10 | 18 | 10.8 |
The pocket's width across flats is s plus twice the gap; its corners follow from that (width across flats divided by the square root of 3, from the centre). Its depth is m unless you set one.
The gap and the depth are yours to set; neither standard gives a pocket size. With a gap of 0 the pocket is exactly the largest nut the standard allows, so a real nut (always at or under s) fits with whatever its own tolerance leaves.
The bolt hole through the pocket's floor (use the clearance-hole part), and any slot to slide the nut in from the side.
The old catalogue's negative_hex_nut_trap_M<n>_nominal entries (M2 to M8) give a width across flats and a height that are DIN 934's s and m for every size (M5 4, M6 5 and M8 6.5 high, where ISO 4032 has 4.7, 5.2 and 6.8). They map to the DIN 934 presets with no gap. They have no model to measure.
Its print_clearance_0p15mm and print_clearance_0p25mm entries name a clearance but not where it applies (on each flat or over the width across flats), give the same width as the nominal entries, and have no model to measure, so they are left out. Set the gap yourself. Its square nut, slot-in and side-insert pocket entries name only a thread and are left out for the same reason: no pocket size, slot length or clearance is given.
Metric nuts: hex ISO 4032, thin ISO 4035, nylon-insert DIN 985, all-metal DIN 980, flange DIN 6923, cap DIN 1587, square DIN 557.
Hex nut, ISO 4032, M2 to M12.
Clearance hole cylinder for metric bolts and screws, M1.6 to M100: ISO 273 fine, medium and coarse, at the low, middle or high end of H12, H13 or H14.
Countersink for metric countersunk head screws, M1.6 to M10: ISO 15065's 90 degree countersink over its ISO 273 medium clearance hole, as a solid to cut with.