Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion OpenSCAD/Cullenect.scad
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Fastener_Head_Flange=false;
Fastener_Driver_Security=false;

/* [Hardware Icon] */
Select_Hardware="none"; // [none:None, washer:Washer, washer_locking:Locking Washer, threaded_insert:Threaded Insert, nut:Nut, nut_square:Square Nut, nut_nylon:Nylon Lock Nut, tnut_1:T-Nut Side, tnut_2:T-Nut Top, magnet:Magnet, crimp_ring_open:Crimp Ring - Open, crimp_ring_closed:Crimp Ring - Closed, crimp_fork_open:Crimp Fork - Open, crimp_fork_closed:Crimp Fork - Closed, crimp_spade_open:Crimp Spade - Open, crimp_spade_closed:Crimp Spade - Closed, crimp_receptacle_open:Crimp Receptacle - Open, crimp_receptacle_closed:Crimp Receptacle - Closed]
Select_Hardware="none"; // [none:None, washer:Washer, washer_locking:Locking Washer, threaded_insert:Threaded Insert, nut:Nut, nut_square:Square Nut, nut_nylon:Nylon Lock Nut, tnut_1:T-Nut Side, tnut_2:T-Nut Top, magnet:Magnet, crimp_ring_open:Crimp Ring - Open, crimp_ring_closed:Crimp Ring - Closed, crimp_fork_open:Crimp Fork - Open, crimp_fork_closed:Crimp Fork - Closed, crimp_spade_open:Crimp Spade - Open, crimp_spade_closed:Crimp Spade - Closed, crimp_receptacle_open:Crimp Receptacle - Open, crimp_receptacle_closed:Crimp Receptacle - Closed, wire_nut:Wire Nut]

/* [Advanced] */

Expand Down Expand Up @@ -853,6 +853,15 @@ module cullenect_hardware(hardware) {
}
}
}

// Wire Nut (imported from SVG artwork)
module wire_nut(){
// Imported SVG needs a small left bias to visually center in the hardware slot.
translate([-hardX*0.16,0,0])
linear_extrude(height=layer, center=true)
scale([hardX*1.2/62.402642, hardX*0.76/40.959778, 1])
import("icons/wire_nut.svg", center=true);
}

// Output
if (hardware == "washer")washer();
Expand All @@ -872,6 +881,7 @@ module cullenect_hardware(hardware) {
if (hardware == "crimp_spade_closed")crimp_spade(barrel="closed");
if (hardware == "crimp_receptacle_open")crimp_receptacle(barrel="open");
if (hardware == "crimp_receptacle_closed")crimp_receptacle(barrel="closed");
if (hardware == "wire_nut")wire_nut();
}

// Master function to generate configured label
Expand Down
42 changes: 42 additions & 0 deletions OpenSCAD/icons/wire_nut.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.