Connecting Base and Lid

Connectors to connect Base and Lid together

With this type of connector you can connect the Base and the Lid together.
//-- normal : origen = box[0,0,0]
//-- yappConnWithPCB: origen = pcb[0,0,0]
// (0) = posx
// (1) = posy
// (2) = pcbStandHeight
// (3) = screwDiameter
// (4) = screwHeadDiameter
// (5) = insertDiameter
// (6) = outsideDiameter
// (7) = flangeHeight
// (8) = flangeDiam
// (9) = { yappConnWithPCB }
// (10) = { yappAllCorners | yappFrontLeft | yappFrondRight | yappBackLeft | yappBackRight }
connectors = [
[8, 8, 0, 2.5, 2.8, 3.8, 6, 6, 15, yappConnShells, yappAllCorners]
, [28, 58, 0, 2.5, 2.8, 3.8, 6, 6, 25, yappConnShells]
];
Example:
connectors = [
[ 8, 8, 0, 2.5, 2.8, 3.8, 5, 3, 7, yappAllCorners]
];
The eighth element (yappConnWithPCB) specifies whether to clamp a PCB between the Base and Lid. For this to work you als need to specify the position of the PCB in respect to the base (in the example below it is set to "4.2mm").
//-- normal : origen = box[0,0,0]
//-- yappConnWithPCB: origen = pcb[0,0,0]
// (0) = posx
// (1) = posy
// (2) = pcbStandHeight <--!
// (3) = screwDiameter
// (4) = screwHeadDiameter
// (5) = insertDiameter
// (6) = outsideDiameter
// (7) = flangeHeight
// (8) = flangeDiam
// (9) = { yappConnWithPCB }
// (10) = { yappAllCorners | yappFrontLeft | yappFrondRight | yappBackLeft | yappBackRight }
Example:
connectors = [
[ 8, 8, 4.2, 2.5, 2,8, 3.8, 5, 3, 7, yappConnWithPCB, yappAllCorners]
];
Thanks to Oliver Grafe
The depth of the screw is changed with the standoffHeight so you don't have to buy new screws every time you make a projectbox with a different height.
To provide extra strength you use the flange parameters.

Melt Inserts

You have to press/melt an insert into the Lid-standoff.