Y
Y
YAPPgenerator_en
Search…
⌃K

Debugging

There are various ways to debug your projectbox.scad program.

Overview of parameter values

During compilation most settings are listed in the console window.
Compiling design (CSG Tree generation)...
ECHO: "YAPP=========================================="
ECHO: "YAPP:", pcbLength = 100
ECHO: "YAPP:", pcbWidth = 70
ECHO: "YAPP:", pcbThickness = 1.6
ECHO: "YAPP:", paddingFront = 10
ECHO: "YAPP:", paddingBack = 10
ECHO: "YAPP:", paddingRight = 10
ECHO: "YAPP:", paddingLeft = 10
ECHO: "YAPP=========================================="
ECHO: "YAPP:", pcbStands = [[0, 0, 2, 6], [15, 50, 4, 6]]
ECHO: "YAPP:", standoffHeight = 8
ECHO: "YAPP:", pinDiameter = 2.5
ECHO: "YAPP:", standoffDiameter = 6
ECHO: "YAPP=========================================="
ECHO: "YAPP:", baseWallHeight = 15
ECHO: "YAPP:", lidWallHeight = 10
ECHO: "YAPP:", wallThickness = 3
ECHO: "YAPP:", ridgeHeight = 4
ECHO: "YAPP:", roundRadius = 4
ECHO: "YAPP:", shellLength = 126
ECHO: "YAPP:", shellInsideLength = 120
ECHO: "YAPP:", shellWidth = 96
ECHO: "YAPP:", shellInsideWidth = 90
ECHO: "YAPP:", shellHeight = 31
ECHO: "YAPP:", shellInsideHeight = 25
ECHO: "YAPP=========================================="
ECHO: "YAPP:", pcbX = 13
ECHO: "YAPP:", pcbY = 13
ECHO: "YAPP:", pcbZ = 12.6
ECHO: "YAPP:", pcbZlid = 18.4
ECHO: "YAPP=========================================="
ECHO: "YAPP:", shiftLid = 15
ECHO: "YAPP:", onLidGap = 5
ECHO: "YAPP=========================================="
ECHO: "YAPP: copyright by Willem Aandewiel"
ECHO: "YAPP=========================================="
These variables can be used in the various arrays to make the values comply to changes you made in the setup.

Controlling the Compiled Image

There are various settings that you can tune to change the compiled image so you can get more "insight" in the projectbox the YAPPgenerator is making.
//-- D E B U G -----------------//-> Default ---------
showSideBySide = true; //-> true
onLidGap = 3;
shiftLid = 1;
hideLidWalls = false; //-> false
colorLid = "yellow";
hideBaseWalls = false; //-> false
colorBase = "white";
showOrientation = true;
showPCB = false;
showPCBmarkers = false;
showShellZero = false;
showCenterMarkers = false;
inspectX = 0; //-> 0=none (>0 from front, <0 from back)
inspectY = 0; //-> 0=none (>0 from left, <0 from right)
//-- D E B U G ---------------------------------------

showSideBySide

When true it the Base and Lid are printed side by side. This is usually the setting to use if you want to compile a STL file for 3D printing.
When false the Base and Lid are printed "on top" of each other.
showSideBySide = false, onLidCap = 15
showSideBySide = true, shiftLid = 10

onLidGap

This value is only used when showSideBySide = false. A value of zero prints the Base and Lid right on to of each other. A value > zero will lift the Lid up from the Base.

shiftLid

This value is only used when showSideBySide = true. A value > zero will place the Lid further away from the Base.

hideBaseWalls

If true the baseWalls are not printed so you can see the inside of the box

hideLidWalls

If true the lidWalls are not printed so you can see the inside of the box
hideBaseWall = false, hideLidWall = false
hideBaseWall = true, hideLidWall = true
HideBaseWall = true, hideLidWall = false

showOrientation

When true the text Front, Right, Back and Left are printed at the four planes. When creating a STL file the orientation markers are never printed!
showOrientation = false
showOrientation = true

showPCB

For reference and for getting a feel of the projectbox it is, sometimes, handy to show exactly where the PCB will fit into the projectbox. When true a (dummy) PCB is printed. When false no PCB is printed.
showPCB = false
showPCB = true

showPCBmarkers

To get a better feel where the pcb[0,0,0] point is you can set showPCBmarkers to true. The vertical black markers are on the exact corners of the PCB. The horizontal black markers are drawn at the top of the PCB.
showPCBmarkers = true, showPCB = true
showPCBmarkers = true, showPCB = false

showShellZero

When true it will show a vertical red marker at posX=0 and posY=0
showShellZero = false
showShellZero = true

showCenterMarkers

When true, blue center markers are printed just below the projectbox.

inspectX

With a value greater than zero you get a cross section of the projectbox from the Front towards the Back. A negative value gives a cross section from the Back towards the Front.
inspectX = negative
inspectX = positive

inspectY

With a value greater than zero you get a cross section of the projectbox from the Left towards Right. A negative value gives a cross section from the Right towards Left.
inspectY = negative
inspectY = positive