mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-01-17 05:28:14 +01:00
Can now specify the screw used for PSU shrouds and get the wall thickness.
This commit is contained in:
parent
5ccda42e5b
commit
c982876ebc
@ -41,6 +41,7 @@ overlap = 6;
|
||||
cable_tie_inset = wall + 4;
|
||||
|
||||
function psu_shroud_extent(type) = 15 + wall; //! How far it extends beyond the PSU to clear the connections
|
||||
function psu_shroud_wall(type) = wall; //! The wall thickness
|
||||
function psu_shroud_depth(type) = //! Outside depth of the shroud
|
||||
psu_left_bay(type) + overlap + psu_shroud_extent(type);
|
||||
|
||||
@ -154,7 +155,7 @@ assembly(str("PSU_shroud_", name), ngb = true) {
|
||||
insert(insert);
|
||||
}
|
||||
|
||||
module psu_shroud_fastened_assembly(type, cable_d, thickness, name, cables = 1) //! Assembly with screws in place
|
||||
module psu_shroud_fastened_assembly(type, cable_d, thickness, name, cables = 1, screw = screw) //! Assembly with screws in place
|
||||
{
|
||||
screw_length = screw_length(screw,thickness + counter_bore, 2, true);
|
||||
|
||||
|
@ -5353,6 +5353,7 @@ The stl and assembly must be given a name and parameterless wrappers for the stl
|
||||
| `psu_shroud_extent(type)` | How far it extends beyond the PSU to clear the connections |
|
||||
| `psu_shroud_height(type)` | Outside height |
|
||||
| `psu_shroud_screw(type)` | Screw used to fasten |
|
||||
| `psu_shroud_wall(type)` | The wall thickness |
|
||||
| `psu_shroud_width(type)` | Outside width of the shroud |
|
||||
|
||||
### Modules
|
||||
@ -5361,7 +5362,7 @@ The stl and assembly must be given a name and parameterless wrappers for the stl
|
||||
| `psu_shroud(type, cable_d, name, cables = 1)` | Generate the STL file for a specified ssr and cable |
|
||||
| `psu_shroud_assembly(type, cable_d, name, cables = 1)` | The printed parts with inserts fitted |
|
||||
| `psu_shroud_cable_positions(type, cable_d, cables = 1)` | Place children at the cable tie positions |
|
||||
| `psu_shroud_fastened_assembly(type, cable_d, thickness, name, cables = 1)` | Assembly with screws in place |
|
||||
| `psu_shroud_fastened_assembly(type, cable_d, thickness, name, cables = 1, screw = screw)` | Assembly with screws in place |
|
||||
| `psu_shroud_hole_positions(type)` | Place children at the screw hole positions |
|
||||
| `psu_shroud_holes(type, cable_d, cables = 1)` | Drill the screw and ziptie holes |
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user