Sign in with STEVE

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.

v1.0.0 Latest STEVE MIT 0
Isometric
part.py 68 lines · Python · STEVE runtime · checked
Download
1"""Hex head screw, inch series: hex cap screws to ASME B18.2.1 (1/4 to 1/2 in) and hex head machine screws to
2ASME B18.6.3 (#2 to #10), UNC and UNF, any length.
3
4Envelope model for assemblies: hexagon head (width across flats F, height H; corners and washer face not chamfered)
5and a plain shank at the basic major diameter D of ASME B1.1 (the thread is not modelled). The head's bearing face
6is on the XY plane at the origin, the head above it, the shank along -Z; `length` (inches) is the nominal length
7under the head. The model is in millimetres (1 in = 25.4 mm).
8"""
9from steve import Model
10
11size = "1/4-20" # Thread (Unified, ASME B1.1)
12length = 1.0 # in Nominal length under the head
13material = "steel" # Material
14
15# Thread designation: nominal size
16THREADS = {
17 "#0-80": "#0", "#1-64": "#1", "#1-72": "#1", "#2-56": "#2", "#2-64": "#2", "#3-48": "#3", "#3-56": "#3",
18 "#4-40": "#4", "#4-48": "#4", "#5-40": "#5", "#5-44": "#5", "#6-32": "#6", "#6-40": "#6", "#8-32": "#8",
19 "#8-36": "#8", "#10-24": "#10", "#10-32": "#10", "1/4-20": "1/4", "1/4-28": "1/4", "5/16-18": "5/16",
20 "5/16-24": "5/16", "3/8-16": "3/8", "3/8-24": "3/8", "7/16-14": "7/16", "7/16-20": "7/16", "1/2-13": "1/2",
21 "1/2-20": "1/2",
22}
23# Inches. D: ASME B1.1-1989 (R2001) basic major diameter, as reproduced at
24# https://www.engineersedge.com/screw_threads_chart.htm ("Major Diameter Basic").
25# #2 to #10: ASME B18.6.3-2013 Table 29 (plain and slotted hex head machine screws, regular head), F max and H max
26# (the table has no basic column), as reproduced in Tanner's catalogue p. 72 (ASME B18.6.3-2002 table, same values)
27# https://www.tannerbolt.com/media/akeneo_connector/Machinehexhds.pdf and at https://torqbolt.com/asme-b18-6-3-plain-and-slotted-hexagon-head-machine-screws-dimensions-standards-specifications
28# 1/4 to 1/2: ASME B18.2.1-2012 Table 6 (hex cap screws), F basic and H basic, as reproduced at
29# https://torqbolt.com/asme-b18-2-1-hex-cap-screws-dimensions-standards-specifications and
30# https://www.aftfasteners.com/hex-cap-screws-head-thread-dimensions-performance-mechanical-specs/
31# nominal: (D, F, H)
32DIMENSIONS = {
33 "#2": (0.0860, 0.125, 0.050),
34 "#4": (0.1120, 0.188, 0.060),
35 "#6": (0.1380, 0.250, 0.093),
36 "#8": (0.1640, 0.250, 0.110),
37 "#10": (0.1900, 0.312, 0.120),
38 "1/4": (0.2500, 0.4375, 0.15625),
39 "5/16": (0.3125, 0.500, 0.203125),
40 "3/8": (0.3750, 0.5625, 0.234375),
41 "7/16": (0.4375, 0.625, 0.28125),
42 "1/2": (0.5000, 0.750, 0.3125),
43}
44# material choice: (STEVE material library id, appearance colour)
45MATERIALS = {
46 "steel": ("steel-generic", "#b8bcc2"), # carbon steel, zinc plated
47 "stainless-18-8": ("stainless-304", "#c9ccd0"),
48 "stainless-316": ("stainless-316", "#c9ccd0"),
49}
50INCH = 25.4
51
52D, F, H = DIMENSIONS[THREADS[size]]
53d = D * INCH
54s = F * INCH
55k = H * INCH
56shank = length * INCH
57material_id, colour = MATERIALS[material]
58
59model = Model()
60with model.sketch("head_sketch", on="XY", name="Head") as sk:
61 sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False)
62model.extrude("head", "head_sketch", distance=k, name="Head")
63with model.sketch("shank_sketch", on="XY", name="Shank") as sk:
64 sk.circle("shank_circle", (0, 0), d / 2)
65model.extrude("shank", "shank_sketch", distance=-shank, name="Shank")
66model.material(material_id, color=colour)
67result = model.result()
68

Hex head screw, Unified inch threads: hex cap screws to ASME B18.2.1 (1/4 to 1/2 in) and hex head machine screws to ASME B18.6.3 (#2 to #10). Envelope geometry for assemblies: hexagon head (width across flats F, height H; chamfers and washer face not modelled) and a plain shank at the ASME B1.1 basic major 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, in inches (the model itself is in millimetres). Dimensions: see the README.

Hex head screw, inch (ASME B18.2.1 / B18.6.3)

Hex head screw with Unified inch threads (UNC and UNF): hex cap screws to ASME B18.2.1 for 1/4 to 1/2 in, and hex head machine screws to ASME B18.6.3 for #2 to #10, at any length. Presets cover the catalogue sizes.

Geometry

Envelope for assemblies:

  • hexagon head, width across flats F, height H (corner chamfers and the washer face are not modelled);
  • plain shank at the basic major diameter D, length L (length, under the head); 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; the hexagon's corners point along X.

Parameters

Parameter Meaning
size Thread: #2 to #10 (hex head machine screws), 1/4 to 1/2 (hex cap screws), UNC and UNF
length Nominal length L under the head, inches
material steel (carbon steel, zinc plated), stainless-18-8 (304), stainless-316

Sources

The machine screw rows use max values and the cap screw rows basic values because those are the columns each table gives. Inch values as printed in the tables; the model converts them to millimetres (1 in = 25.4 mm).

Size D F H
#2 0.086 0.125 0.05
#4 0.112 0.188 0.06
#6 0.138 0.25 0.093
#8 0.164 0.25 0.11
#10 0.19 0.312 0.12
1/4 0.25 0.4375 0.15625
5/16 0.3125 0.5 0.203125
3/8 0.375 0.5625 0.234375
7/16 0.4375 0.625 0.28125
1/2 0.5 0.75 0.3125

Corrected in this audit: #4 F 0.1875 -> 0.188 and #10 F 0.3125 -> 0.312 (the table's printed max values).

Preset list: sizes and lengths of the step.parts catalogue (MIT), see library/NOTICE.md.

  1. 1.0.0 Latest
More #fastener
STEVEMIT

steve/inch-flat-head-screw

Flat head (countersunk) socket cap screw, inch, ASME B18.3, #0 to 1/2 in, UNC/UNF, any length, with catalogue sizes as presets.

0 112 sizes 0 1 day ago v1.0.0
STEVEMIT

steve/inch-set-screw

Socket set screw, inch, ASME B18.3, #0 to 1/2 in, UNC/UNF, with catalogue sizes as presets.

0 73 sizes 0 1 day ago v1.0.0
STEVEMIT

steve/inch-button-head-screw

Button head socket cap screw, inch, ASME B18.3, #0 to 1/2 in, UNC/UNF, any length, with catalogue sizes as presets.

0 112 sizes 0 1 day ago v1.0.0
STEVEMIT

steve/inch-socket-head-cap-screw

Socket head cap screw, inch, ASME B18.3, #0 to 1/2 in, UNC/UNF, any length, with catalogue sizes as presets.

0 112 sizes 0 1 day ago v1.0.0