# pcbStands (advanced)

The pcbStands object has a few optional parameters:

```

   Optional:
    p(2) = Height to bottom of PCB from inside of base: Default = standoffHeight
             negative measures from inside of the lid to the top of the PCB
    p(3) = PCB Gap : Default = -1 : Default for yappCoordPCB=pcbThickness, yappCoordBox=0
    p(4) = standoffDiameter    Default = standoffDiameter;
    p(5) = standoffPinDiameter Default = standoffPinDiameter;
    p(6) = standoffHoleSlack   Default = standoffHoleSlack;
    p(7) = filletRadius (0 = auto size)
    p(8) = Pin Length : Default = 0 -> PCB Gap + standoff_PinDiameter
             Indicated length of pin without the half sphere tip. 
             Example : pcbThickness() only leaves the half sphere tip above the PCB
    n(a) = { <yappBoth> | yappLidOnly | yappBaseOnly }
    n(b) = { <yappPin>, yappHole, yappTopPin } 
             yappPin = Pin on Base and Hole on Lid 
             yappHole = Hole on Both
             yappTopPin = Hole on Base and Pin on Lid
    n(c) = { yappAllCorners, yappFrontLeft | <yappBackLeft> | yappFrontRight | yappBackRight }
    n(d) = { <yappCoordPCB> | yappCoordBox | yappCoordBoxInside }
    n(e) = { yappNoFillet } : Removes the internal and external fillets and the Rounded tip on the pins
    n(f) = [yappPCBName, "XXX"] : Specify a PCB. Defaults to [yappPCBName, "Main"]
    n(g) = yappSelfThreading : make the hole a self threading hole 
             This ignores the holeSlack and would only be usefull 
             if the opposing stand if deleted see sample in Demo_Connectors

```

#### p(2) - Height to bottom of PCB

Well, it defines the height of the pcbStand which is useful if a pcbStand needs to be of a different height than the default (f.i. if you have more than one PCB that needs to fit in your projectbox.

#### &#x20;p(3) - PCB Gap

This defines the thickness of the (f.i.) second PCB\
Take this code:

```
pcbStands = 
[
    [pcbLength-7, 5, yappAllCorners]
//-- (0), (1), (2),(3),(4),    (5),     (6),(7)
   ,[70,   5,  10,  5,  6, default, default, 1]
   ,[70,  40,  10,  5,  6, default, default, 1]
   ,[100,  5,  10,  5,  6, default, default, 1]
   ,[100, 40,  10,  5,  6, default, default, 1]
];
```

The first entry will create four 'standard' pcbStands based on the size of the PCB.\
The next four entries will create one pcbStand each for a second PCB that is 5mm thick \[p(3)] and that stands 10mm above the base \[p(2)]. The fillet radius \[p(7)] for each of these stands is set to 1mm.

<figure><img src="/files/mjW2PRlNlQZ4Il6DU4X2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mrwheel-docs.gitbook.io/yappgenerator_en/standoffs/pcbstands-advanced.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
