# YAPP Box Settings

There are a view settings that the YAPPgenerator needs, to create your perfect project box.\
From Top to Bottom of the **`YAPP_template.scad`** file:

```
//-- which part(s) do you want to print?
printBaseShell        = true;
printLidShell         = true;
printSwitchExtenders  = true;
```

**`printBaseShell`**`:` if `true` will print (generate) the **base** of the projectbox and if **`printLidShell`** is `true` the **lid** will be printed. **printSwitchExtenders** controls whether or not switch extenders are printed.

```
//-- pcb dimensions -- very important!!!
pcbLength           = 150; // Front to back
pcbWidth            = 100; // Side to side
pcbThickness        = 1.6;
```

These `pcb-variables` are the reference for most of the other measurements!

```
//-- padding between pcb and inside wall
paddingFront        = 15;
paddingBack         =  8;
paddingRight        = 12;
paddingLeft         =  5;
```

With the `paddingFields` you define the space between the PCB and the (inside!) walls of your projectbox.

<figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2FaaycTHzBgIn2kAkMOHmI%2FYAPP_padding.png?alt=media&#x26;token=1c07d735-c71f-4b80-8bcb-b3662e359c23" alt=""><figcaption></figcaption></figure>

```
//-- Edit these parameters for your own box
wallThickness       = 2.4;
basePlaneThickness  = 4.0;
lidPlaneThickness   = 1.2;
```

<figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2FrOvu4g1x0eEmSUx1abhm%2FYAPPthickness.png?alt=media&#x26;token=61e2a3a8-d7c1-4285-899d-2626ee209f03" alt=""><figcaption></figcaption></figure>

**`wallThickness`** determines the thickness of the standing walls. **`basePlaneThickness`** and **`lidPlaneThickness`** respectively determines the thickness of the base plane and the lid plane.

```
//-- total height inside  = baseWallHeight + lidWallHeight 
//--                 35.0 = 15 + 20
//-- total height outside = total-height-inside
//--                      + basePlaneThickness + lidPlaneThickness
//--                 41.2 = 35 + 2.0 + 4.2
baseWallHeight      = 15; 
lidWallHeight       = 20;
```

<figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2FfsPJVpHjW1Kp5HRCq0oy%2FYAPPboxHeights.png?alt=media&#x26;token=1f55bebf-54d1-479e-bd0c-bee1fc4cfc98" alt=""><figcaption></figcaption></figure>

```
//-- ridge where base and lid off box can overlap
//-- Make sure this isn't less than lidWallHeight
ridgeHeight         = 4;
ridgeSlack          = 0.2;

//-- the radius of all outside edges and corners
roundRadius         = 3.0;
```

**`ridgeHeight`** is the height of the overlapping edges that centers the lid nicely on the base.\
\&#xNAN;**`ridgeSlack`** makes some room between the lid-ridge and the base-ridge so they snap nicely in each other.\
\&#xNAN;**`roundRadius`** is the diameter with which all edges are rounded.

<figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2FMWvt6sAogaqAVfxesI9T%2FYAPProundRidge.png?alt=media&#x26;token=4fa86b63-b0a0-4a8e-bb17-327e81f7cb2e" alt=""><figcaption></figcaption></figure>

```
//-- How much the PCB needs to be raised from the base
//-- to leave room for solderings and whatnot
standoffHeight      = 15.0;  //-- used for PCB Supports, Push Button and showPCB
standoffDiameter    = 7;
standoffPinDiameter = 2.4;
standoffHoleSlack   = 0.4;
```

<div><figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2Faet5ZunjBzyfHix8Xxrx%2FYAPPstandoff_cap.png?alt=media&#x26;token=bb9d12ab-e19f-4e0c-bc68-7b44c27c451b" alt=""><figcaption></figcaption></figure> <figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2FBS5QRwGWBS3dtxjhHWCb%2FYAPPstandoff.png?alt=media&#x26;token=ae73905b-906c-430a-8ac6-e8608cc31087" alt=""><figcaption></figcaption></figure></div>

&#x20;
