Sign in with STEVE

Compare versions

2 files changed, +8 −3 1.1.0: Materials and finishes: each part is made of its standard's engineering material, with its usual finish.

part.py +5 −1
@@ -1,5 +1,7 @@
11"""ISO 4032 hex nut. Envelope: hex prism with a plain bore at the thread's nominal diameter.
2It sits on the XY plane, centred on the origin."""
2It sits on the XY plane, centred on the origin.
3
4Material: property class 8 carbon steel (C35), zinc plated."""
35from steve import Model
46
57size = "M3" # Thread size
@@ -35,5 +37,7 @@
3537 sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False)
3638 sk.circle("bore", (0, 0), d / 2)
3739model.extrude("nut", "nut_sketch", distance=m)
40model.material("steel-1c35") # class 8 nut steel
41model.appearance(color="#c9d1d9", metalness=1.0, roughness=0.3) # clear zinc plating
3842result = model.result()
3943
pypart.toml +3 −2
@@ -1,10 +1,11 @@
11name = "steve/hex-nut"
2version = "1.0.0"
2version = "1.1.0"
33runtime = "steve"
44license = "MIT"
55summary = "Hex nut, ISO 4032, M2 to M12."
6description = "ISO 4032 hex nut. Envelope: hex prism with a plain bore at the thread's nominal diameter.\nIt sits on the XY plane, centred on the origin.\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread."
6description = "ISO 4032 hex nut. Envelope: hex prism with a plain bore at the thread's nominal diameter.\nIt sits on the XY plane, centred on the origin.\n\nMaterial: property class 8 carbon steel (C35), zinc plated.\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread."
77tags = ["fastener", "nut", "iso-4032", "metric"]
8changes = "Materials and finishes: each part is made of its standard's engineering material, with its usual finish."
89
910[parameters.size]
1011type = "choice"