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 4017 (DIN 933) hex head screw, fully threaded. Envelope: hex head and plain shank. |
| 2 | The head's bearing face is on the XY plane at the origin; the shank points down -Z.""" | |
| 2 | The head's bearing face is on the XY plane at the origin; the shank points down -Z. | |
| 3 | ||
| 4 | Material: property class 8.8 medium-carbon steel, quenched and tempered (C45), zinc plated.""" | |
| 3 | 5 | from steve import Model |
| 4 | 6 | |
| 5 | 7 | size = "M6" # Thread size |
| @@ -34,5 +36,7 @@ | ||
| 34 | 36 | with model.sketch("shank_sketch", on="XY", name="Shank") as sk: |
| 35 | 37 | sk.circle("shank", (0, 0), d / 2) |
| 36 | 38 | model.extrude("shank", "shank_sketch", distance=-length) |
| 39 | model.material("steel-1c45") # class 8.8 steel | |
| 40 | model.appearance(color="#c9d1d9", metalness=1.0, roughness=0.3) # clear zinc plating | |
| 37 | 41 | result = model.result() |
| 38 | 42 |
| @@ -1,10 +1,11 @@ | ||
| 1 | 1 | name = "steve/hex-head-screw" |
| 2 | version = "1.0.0" | |
| 2 | version = "1.1.0" | |
| 3 | 3 | runtime = "steve" |
| 4 | 4 | license = "MIT" |
| 5 | 5 | summary = "Hex head screw, ISO 4017 / DIN 933, M3 to M12, any length." |
| 6 | description = "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." | |
| 6 | description = "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." | |
| 7 | 7 | tags = ["fastener", "screw", "bolt", "iso-4017", "din-933", "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" |