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

Added screw_length() to calculuate screw lengths includin washers, inserts and nuts.

This commit is contained in:
Chris Palmer
2021-01-15 18:12:37 +00:00
parent c33876530e
commit 93b260b7b9
28 changed files with 62 additions and 88 deletions

View File

@@ -105,8 +105,7 @@ module socket_box_MKLOGIC_assembly() socket_box_assembly(MKLOGIC);
module socket_box_fastened_assembly(type, thickness) { //! The socket and backbox on each side of the specified panel thickness
screw = mains_socket_screw(type);
insert = screw_insert(screw);
screw_length = screw_longer_than(mains_socket_height(type) + thickness + insert_length(insert));
screw_length = screw_length(screw, mains_socket_height(type) + thickness, 0, true, longer = true);
explode(-50)
translate_z(-height - thickness)