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 7380 button head socket screw. Envelope: domed head (revolved profile), hex socket, plain shank.
2The head's flat side is on the XY plane at the origin; the shank points down -Z."""
2The head's flat side is on the XY plane at the origin; the shank points down -Z.
3
4Material: property class 10.9 alloy steel, quenched and tempered (34CrNiMo6 from the material library), black oxide."""
35from steve import Model
46
57size = "M4" # Thread size
@@ -38,5 +40,7 @@
3840with model.sketch("socket_sketch", on="head_top", name="Hex socket") as sk:
3941 sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False)
4042model.extrude("socket", "socket_sketch", distance=-0.6 * k, op="cut")
43model.material("steel-34crnimo6") # class 10.9 alloy steel
44model.appearance(color="#2e3034", metalness=0.75, roughness=0.38) # black oxide finish
4145result = model.result()
4246
pypart.toml +3 −2
@@ -1,10 +1,11 @@
11name = "steve/button-head-screw"
2version = "1.0.0"
2version = "1.1.0"
33runtime = "steve"
44license = "MIT"
55summary = "Button head socket screw, ISO 7380, M3 to M12, any length."
6description = "ISO 7380 button head socket screw. Envelope: domed head (revolved profile), hex socket, plain shank.\nThe head's flat side 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 7380 button head socket screw. Envelope: domed head (revolved profile), hex socket, plain shank.\nThe head's flat side is on the XY plane at the origin; the shank points down -Z.\n\nMaterial: property class 10.9 alloy steel, quenched and tempered (34CrNiMo6 from the material library), black oxide.\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread."
77tags = ["fastener", "screw", "iso-7380", "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"