1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-09-09 22:51:16 +02:00

Nuts now show their thickness on the BOM so half nuts have a different description.

This commit is contained in:
Chris Palmer
2019-06-14 17:13:12 +01:00
parent b719601a64
commit a51e96ec43
2 changed files with 38 additions and 38 deletions

View File

@@ -40,10 +40,10 @@ module nut(type, nyloc = false, brass = false, nylon = false) { //! Draw specifi
hole_rad = nut_size(type) / 2;
outer_rad = nut_radius(type);
thickness = nut_thickness(type);
nyloc_thickness = type[4];
nyloc_thickness = nut_thickness(type, true);
desc = nyloc ? "nyloc" : brass ? "brass" : nylon ? "nylon" : "";
vitamin(str("nut(", type[0], arg(nyloc, false, "nyloc"), arg(brass, false, "brass"), arg(nylon, false, "nylon"),
"): Nut M", nut_size(type), " ", desc));
"): Nut M", nut_size(type), " x ", thickness, "mm ", desc));
explode(nyloc ? 10 : 0)
color(brass ? brass_colour : nylon ? grey30: grey70) {