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.
| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | """ISO 10642 (DIN 7991) countersunk socket screw. Envelope: 90 degree head and plain shank in one revolved |
| 2 | profile, hex socket. The head's top face is on the XY plane at the origin; `length` is the overall length.""" | |
| 2 | profile, hex socket. The head's top face is on the XY plane at the origin; `length` is the overall length. | |
| 3 | ||
| 4 | Material: property class 10.9 alloy steel, quenched and tempered (34CrNiMo6 from the material library), black oxide.""" | |
| 3 | 5 | from steve import Model |
| 4 | 6 | |
| 5 | 7 | size = "M4" # Thread size |
| @@ -36,5 +38,7 @@ | ||
| 36 | 38 | with model.sketch("socket_sketch", on="XY", name="Hex socket") as sk: |
| 37 | 39 | sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False) |
| 38 | 40 | model.extrude("socket", "socket_sketch", distance=-0.8 * k, op="cut") |
| 41 | model.material("steel-34crnimo6") # class 10.9 alloy steel | |
| 42 | model.appearance(color="#2e3034", metalness=0.75, roughness=0.38) # black oxide finish | |
| 39 | 43 | result = model.result() |
| 40 | 44 |
| @@ -1,10 +1,11 @@ | ||
| 1 | 1 | name = "steve/countersunk-screw" |
| 2 | version = "1.0.0" | |
| 2 | version = "1.1.0" | |
| 3 | 3 | runtime = "steve" |
| 4 | 4 | license = "MIT" |
| 5 | 5 | summary = "Countersunk socket screw, ISO 10642 / DIN 7991, M3 to M12, any length." |
| 6 | description = "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." | |
| 6 | description = "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." | |
| 7 | 7 | tags = ["fastener", "screw", "iso-10642", "din-7991", "metric"] |
| 8 | changes = "Materials and finishes: each part is made of its standard's engineering material, with its usual finish." | |
| 8 | 9 | |
| 9 | 10 | [parameters.size] |
| 10 | 11 | type = "choice" |