33//
44// This is a box for <template>
55//
6- // Version 3.1.0 (2024-04-04 )
6+ // Version 3.1.2 (2024-04-16 )
77//
88// This design is parameterized based on the size of a PCB.
99//
@@ -227,11 +227,6 @@ inspectZfromBottom = true; //-> View from the inspection cut up
227227// -------------------------------------------------------------------
228228pcbStands =
229229[
230- // - Add stands 5mm from each corner of the PCB
231- [5 , 5 ]
232- // - Add posts 25mm from the corners of the box, with a custon height,diameter, Pin Size, hole
233- // - slack and filler radius.
234- // [25, 25, 10, 10, 3.3, 0.9, 5, yappCoordBox]
235230];
236231
237232
@@ -261,10 +256,6 @@ pcbStands =
261256// -------------------------------------------------------------------
262257connectors =
263258[
264- [9 , 15 , 10 , 2.5 , 6 + 1.25 , 4.0 , 9 , 4 , yappFrontRight, yappCountersink]
265- // ,[9, 15, 10, 2.5, 6 + 1.25, 4.0, 9, yappNoFillet, yappFrontLeft]
266- // ,[34, 15, 10, 2.5, 6+ 1.25, 4.0, 9, yappFrontRight]
267- // ,[34, 15, 10, 2.5, 6+ 1.25, 4.0, 9, 0, yappFrontLeft]
268259];
269260
270261
@@ -313,32 +304,16 @@ connectors =
313304// placement within the opening.
314305// n(d) = { <yappCoordPCB> | yappCoordBox | yappCoordBoxInside }
315306// n(e) = { <yappOrigin>, yappCenter }
316- // n(f) = { <yappGlobalOrigin>, yappLeftOrigin } // Only affects Top(lid), Back and Right Faces
307+ // n(f) = { <yappGlobalOrigin>, yappAltOrigin } // Only affects Top(lid), Back and Right Faces
317308// n(g) = [yappPCBName, "XXX"] : Specify a PCB. Defaults to [yappPCBName, "Main"]
318309// n(h) = { yappFromInside } Make the cut from the inside towards the outside
319310// -------------------------------------------------------------------
320311cutoutsBase =
321312[
322- [65 ,shellWidth/2 ,55 ,55 , 5 , yappPolygon ,0 ,30 , yappCenter, shapeHexagon, maskHexCircles]
323- // , [0, 0, 10, 10, 0, yappRectangle,maskHexCircles]
324- // , [shellLength*2/3,shellWidth/2 ,0, 30, 20, yappCircleWithFlats, yappCenter]
325- // , [shellLength/2,shellWidth/2 ,10, 5, 20, yappCircleWithKey,yappCenter]
326313];
327314
328315cutoutsLid =
329316[
330- // Center test
331- [shellLength/2 , shellWidth/2 , 1 , 1 , 5 , yappRectangle ,20 ,45 , yappCenter]
332- ,[pcbLength/2 , pcbWidth/2 , 1 , 1 , 5 , yappRectangle ,20 ,45 , yappCenter, yappCoordPCB]
333- // Edge tests
334- ,[shellLength/2 , 0 , 2 , 2 , 5 , yappRectangle ,20 ,45 , yappCenter]
335- ,[shellLength/2 , shellWidth, 2 , 2 , 5 , yappRectangle ,20 ,45 , yappCenter]
336- ,[0 , shellWidth/2 , 2 , 2 , 5 , yappRectangle ,20 ,45 , yappCenter]
337- ,[shellLength, shellWidth/2 , 2 , 2 , 5 , yappRectangle ,20 ,45 , yappCenter]
338-
339- ,[shellLength* 2 /3 , shellWidth/2 , 0 , 30 , 20 , yappCircleWithFlats, yappCenter]
340- ,[shellLength/3 , shellWidth/2 , 10 , 5 , 20 , yappCircleWithKey,yappCenter]
341-
342317];
343318
344319cutoutsFront =
@@ -377,14 +352,11 @@ cutoutsRight =
377352// -------------------------------------------------------------------
378353snapJoins =
379354[
380- [15 , 10 , yappFront, yappCenter, yappRectangle, yappSymmetric]
381- ,[25 , 10 , yappBack, yappSymmetric, yappCenter]
382- ,[30 , 10 , yappLeft, yappRight, yappCenter, yappSymmetric]
383355];
384356
385357// ===================================================================
386358// *** Box Mounts ***
387- // Mounting tabs on the outside of the box
359+ // Mounting tabs on the outside of the box
388360// -------------------------------------------------------------------
389361// Default origin = yappCoordBox: box[0,0,0]
390362//
@@ -396,14 +368,14 @@ snapJoins =
396368// p(2) = width of opening in addition to screw diameter
397369// (0=Circular hole screwWidth = hole twice as wide as it is tall)
398370// p(3) = height
371+ // n(a) = { yappLeft | yappRight | yappFront | yappBack } : one or more
399372// Optional:
400373// p(4) = filletRadius : Default = 0/Auto(0 = auto size)
401- // n(a) = { yappLeft | yappRight | yappFront | yappBack } : one or more
402374// n(b) = { yappNoFillet }
403375// n(c) = { <yappBase>, yappLid }
404376// n(d) = { yappCenter } : shifts Position to be in the center of the opening instead of
405377// the left of the opening
406- // n(e) = { <yappGlobalOrigin>, yappLeftOrigin } : Only affects Back and Right Faces
378+ // n(e) = { <yappGlobalOrigin>, yappAltOrigin } : Only affects Back and Right Faces
407379// -------------------------------------------------------------------
408380boxMounts =
409381[
@@ -429,31 +401,12 @@ boxMounts =
429401// p(8) = Height to top of PCB : Default = standoffHeight+pcbThickness
430402// p(9) = filletRadius : Default = 0/Auto
431403// n(a) = { <yappCoordPCB> | yappCoordBox | yappCoordBoxInside }
432- // n(b) = { <yappGlobalOrigin>, yappLeftOrigin }
404+ // n(b) = { <yappGlobalOrigin>, yappAltOrigin }
433405// n(c) = { yappNoFillet }
434406// n(d) = [yappPCBName, "XXX"] : Specify a PCB. Defaults to [yappPCBName, "Main"]
435407// -------------------------------------------------------------------
436408lightTubes =
437409[
438- [(pcbLength/2 )+ 10 , 20 , // [0,1] Pos
439- 5 , 5 , // [2,3] Length, Width
440- 1 , // [4] wall thickness
441- standoffHeight + pcbThickness + 4 , // [5] Gap above base bottom
442- yappRectangle, // [6] tubeType (Shape)
443- 0.5 , // [7] lensThickness
444- yappCoordPCB // [n1]
445- ]
446- ,
447- [(pcbLength/2 )+ 10 , 40 , // [0,1] Pos
448- 5 , 10 , // [2,3] Length, Width
449- 1 , // [4] wall thickness
450- standoffHeight + pcbThickness + 4 , // [5] Gap above base bottom
451- yappCircle, // [6] tubeType (Shape)
452- undef, // [7]
453- undef, // [8]
454- 5 , // [9] filletRadius
455- yappCoordPCB // [n1]
456- ]
457410];
458411
459412// ===================================================================
@@ -482,15 +435,12 @@ lightTubes =
482435// p(14) = buttonPlateThickness : Default= 2.5;
483436// p(15) = buttonSlack : Default= 0.25;
484437// n(a) = { <yappCoordPCB> | yappCoordBox | yappCoordBoxInside }
485- // n(b) = { <yappGlobalOrigin>, yappLeftOrigin }
438+ // n(b) = { <yappGlobalOrigin>, yappAltOrigin }
486439// n(c) = { yappNoFillet }
487440// n(d) = [yappPCBName, "XXX"] : Specify a PCB. Defaults to [yappPCBName, "Main"]
488441// -------------------------------------------------------------------
489442pushButtons =
490443[
491- // - 0, 1, 2, 3, 4, 5, 6, 7, 8
492- [(pcbLength/2 )+ 10 , 65 , 15 , 10 , 0 , 3 , 5 , 1 , 3 ]
493- ,[(pcbLength/2 )+ 10 , 85 , 10 , 10 , 4 , 2.0 , 4 , 1 , 4 , standoffHeight, yappCircle]
494444];
495445
496446// ===================================================================
@@ -512,7 +462,6 @@ pushButtons =
512462// -------------------------------------------------------------------
513463labelsPlane =
514464[
515- [5 , 5 , 0 , 1 , yappLid, "Liberation Mono:style=bold" , 5 , "YAPP" ]
516465];
517466
518467
@@ -531,7 +480,7 @@ labelsPlane =
531480// Optional:
532481// n(a) = { <yappOrigin>, yappCenter }
533482// n(b) = { <yappCoordPCB> | yappCoordBox | yappCoordBoxInside }
534- // n(c) = { yappLeftOrigin , <yappGlobalOrigin> } // Only affects Top(lid), Back and Right Faces
483+ // n(c) = { yappAltOrigin , <yappGlobalOrigin> } // Only affects Top(lid), Back and Right Faces
535484// n(d) = [yappPCBName, "XXX"] : Specify a PCB. Defaults to [yappPCBName, "Main"]
536485//
537486// Note: Snaps should not be placed on ridge extensions as they remove the ridge to place them.
@@ -587,7 +536,7 @@ ridgeExtBack =
587536// -------------------------------------------------------------------
588537displayMounts =
589538[
590-
539+ ];
591540
592541// ========= HOOK functions ============================
593542
0 commit comments