Sign in with STEVE

steve/inch-threaded-rod

Threaded rod, inch, Unified threads #0-80 to 1/2-20 (ASME B1.1), any length, with catalogue sizes as presets.

v1.0.0 Latest STEVE MIT 0
Isometric
part.py 44 lines · Python · STEVE runtime · checked
Download
1"""Threaded rod, inch series, Unified threads #0-80 to 1/2-20 (ASME B1.1), any length.
2
3Envelope model for assemblies: a plain cylinder at the basic major diameter D of ASME B1.1 (the thread is not
4modelled). One end is on the XY plane at the origin and the rod runs along +Z; `length` is in inches. The model is
5in millimetres (1 in = 25.4 mm).
6"""
7from steve import Model
8
9size = "1/4-20" # Thread (Unified, ASME B1.1)
10length = 12.0 # in Length
11material = "steel" # Material
12
13# Thread designation: nominal size
14THREADS = {
15 "#0-80": "#0", "#1-64": "#1", "#1-72": "#1", "#2-56": "#2", "#2-64": "#2", "#3-48": "#3", "#3-56": "#3",
16 "#4-40": "#4", "#4-48": "#4", "#5-40": "#5", "#5-44": "#5", "#6-32": "#6", "#6-40": "#6", "#8-32": "#8",
17 "#8-36": "#8", "#10-24": "#10", "#10-32": "#10", "1/4-20": "1/4", "1/4-28": "1/4", "5/16-18": "5/16",
18 "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",
19 "1/2-20": "1/2",
20}
21# Inches. ASME B1.1-1989 (R2001) basic major diameter D, https://www.engineersedge.com/screw_threads_chart.htm
22DIAMETERS = {
23 "#0": 0.0600, "#1": 0.0730, "#2": 0.0860, "#3": 0.0990, "#4": 0.1120, "#5": 0.1250, "#6": 0.1380,
24 "#8": 0.1640, "#10": 0.1900, "1/4": 0.2500, "5/16": 0.3125, "3/8": 0.3750, "7/16": 0.4375, "1/2": 0.5000,
25}
26# material choice: (STEVE material library id, appearance colour)
27MATERIALS = {
28 "steel": ("steel-generic", "#b8bcc2"), # carbon steel, zinc plated
29 "stainless-18-8": ("stainless-304", "#c9ccd0"),
30 "stainless-316": ("stainless-316", "#c9ccd0"),
31}
32INCH = 25.4
33
34d = DIAMETERS[THREADS[size]] * INCH
35rod_length = length * INCH
36material_id, colour = MATERIALS[material]
37
38model = Model()
39with model.sketch("rod_sketch", on="XY", name="Section") as sk:
40 sk.circle("rod_circle", (0, 0), d / 2)
41model.extrude("rod", "rod_sketch", distance=rod_length, name="Rod")
42model.material(material_id, color=colour)
43result = model.result()
44

Fully threaded rod (studding), Unified inch threads #0-80 to 1/2-20. Envelope geometry for assemblies: a plain cylinder at the ASME B1.1 basic major diameter; the thread itself is not modelled. One end is on the XY plane at the origin and the rod runs along +Z; `length` is in inches (the model itself is in millimetres).

Threaded rod, inch (ASME B1.1)

Fully threaded rod (studding), Unified inch threads (UNC and UNF) #0-80 to 1/2-20, at any length. Presets cover the catalogue sizes (1 to 24 in).

Geometry

Envelope for assemblies: a plain cylinder at the basic major diameter D; the thread is not modelled. One end is on the XY plane at the origin and the rod runs along +Z.

Parameters

Parameter Meaning
size Thread, #0-80 to 1/2-20 (UNC and UNF)
length Length, inches
material steel (carbon steel, zinc plated), stainless-18-8 (304), stainless-316

Source

ASME B1.1-1989 (R2001), Unified Inch Screw Threads (UN and UNR Thread Form), external thread dimensions table, column "Major Diameter Basic", as reproduced at https://www.engineersedge.com/screw_threads_chart.htm (every size #0-80 to 1/2-20, UNC and UNF). The same basic diameters head the ASME B18.2.2 nut tables (https://www.fasten.it/Norms/Norm/ASME_B18.2.2_TABLE_1-1). The current B1.1 edition (2019) could not be consulted, so the values are cited as those of B1.1-1989 (R2001).

Inch values as in the standard; the model converts them to millimetres (1 in = 25.4 mm).

Size D
#0 0.06
#1 0.073
#2 0.086
#3 0.099
#4 0.112
#5 0.125
#6 0.138
#8 0.164
#10 0.19
1/4 0.25
5/16 0.3125
3/8 0.375
7/16 0.4375
1/2 0.5

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-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/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-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