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 7380 button head socket screw. Envelope: domed head (revolved profile), hex socket, plain shank. |
| 2 | The head's flat side is on the XY plane at the origin; the shank points down -Z.""" | |
| 2 | The head's flat side is on the XY plane at the origin; the shank points down -Z. | |
| 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 |
| @@ -38,5 +40,7 @@ | ||
| 38 | 40 | with model.sketch("socket_sketch", on="head_top", name="Hex socket") as sk: |
| 39 | 41 | sk.polygon("hex", (0, 0), s / 2, 6, inscribed=False) |
| 40 | 42 | model.extrude("socket", "socket_sketch", distance=-0.6 * k, op="cut") |
| 43 | model.material("steel-34crnimo6") # class 10.9 alloy steel | |
| 44 | model.appearance(color="#2e3034", metalness=0.75, roughness=0.38) # black oxide finish | |
| 41 | 45 | result = model.result() |
| 42 | 46 |
| @@ -1,10 +1,11 @@ | ||
| 1 | 1 | name = "steve/button-head-screw" |
| 2 | version = "1.0.0" | |
| 2 | version = "1.1.0" | |
| 3 | 3 | runtime = "steve" |
| 4 | 4 | license = "MIT" |
| 5 | 5 | summary = "Button head socket screw, ISO 7380, M3 to M12, any length." |
| 6 | description = "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." | |
| 6 | description = "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." | |
| 7 | 7 | tags = ["fastener", "screw", "iso-7380", "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" |