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 4017 (DIN 933) hex head screw, fully threaded. Envelope: hex head and plain shank.
2The head's bearing face is on the XY plane at the origin; the shank points down -Z."""
2The head's bearing face is on the XY plane at the origin; the shank points down -Z.
3
4Material: property class 8.8 medium-carbon steel, quenched and tempered (C45), zinc plated."""
35from steve import Model
46
57size = "M6" # Thread size
@@ -34,5 +36,7 @@
3436with model.sketch("shank_sketch", on="XY", name="Shank") as sk:
3537 sk.circle("shank", (0, 0), d / 2)
3638model.extrude("shank", "shank_sketch", distance=-length)
39model.material("steel-1c45") # class 8.8 steel
40model.appearance(color="#c9d1d9", metalness=1.0, roughness=0.3) # clear zinc plating
3741result = model.result()
3842
pypart.toml +3 −2
@@ -1,10 +1,11 @@
11name = "steve/hex-head-screw"
2version = "1.0.0"
2version = "1.1.0"
33runtime = "steve"
44license = "MIT"
55summary = "Hex head screw, ISO 4017 / DIN 933, M3 to M12, any length."
6description = "ISO 4017 (DIN 933) hex head screw, fully threaded. Envelope: hex head and plain shank.\nThe head's bearing face is on the XY plane at the origin; the shank points down -Z.\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread."
6description = "ISO 4017 (DIN 933) hex head screw, fully threaded. Envelope: hex head and plain shank.\nThe head's bearing face is on the XY plane at the origin; the shank points down -Z.\n\nMaterial: property class 8.8 medium-carbon steel, quenched and tempered (C45), zinc plated.\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread."
77tags = ["fastener", "screw", "bolt", "iso-4017", "din-933", "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"