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 10642 (DIN 7991) countersunk socket screw. Envelope: 90 degree head and plain shank in one revolved
2profile, hex socket. The head's top face is on the XY plane at the origin; `length` is the overall length."""
2profile, hex socket. The head's top face is on the XY plane at the origin; `length` is the overall length.
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
@@ -36,5 +38,7 @@
3638with model.sketch("socket_sketch", on="XY", name="Hex socket") as sk:
3739 sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False)
3840model.extrude("socket", "socket_sketch", distance=-0.8 * k, op="cut")
41model.material("steel-34crnimo6") # class 10.9 alloy steel
42model.appearance(color="#2e3034", metalness=0.75, roughness=0.38) # black oxide finish
3943result = model.result()
4044
pypart.toml +3 −2
@@ -1,10 +1,11 @@
11name = "steve/countersunk-screw"
2version = "1.0.0"
2version = "1.1.0"
33runtime = "steve"
44license = "MIT"
55summary = "Countersunk socket screw, ISO 10642 / DIN 7991, M3 to M12, any length."
6description = "ISO 10642 (DIN 7991) countersunk socket screw. Envelope: 90 degree head and plain shank in one revolved\nprofile, hex socket. The head's top face is on the XY plane at the origin; `length` is the overall length.\n\nDimensions from STEVE's standard-part tables (nominal values of the standard). Envelope geometry: no modelled thread."
6description = "ISO 10642 (DIN 7991) countersunk socket screw. Envelope: 90 degree head and plain shank in one revolved\nprofile, hex socket. The head's top face is on the XY plane at the origin; `length` is the overall length.\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-10642", "din-7991", "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"