p(6) - Cutout Depth

In the previous paragraph we have only used the basic options for most of the objects but as you have seen from the API's, most objects have more options to tailer the project box to your needs. We will now dive in the advanced cutouts options.

All cutout objects have the following optional parameters:

p(6) - depth

This parameter defines how far from the outside of the lid this cutout should extend. This can be handy if you need a pcbStand or connector that is close to this cutout. Look at this code:

cutoutsLeft = 
[
    [13, 0,  15,  10, 2, yappRoundedRect, yappCoordPCB, yappCenter]
];

And:

cutoutsLeft = 
[
    [13, 0,  15,  10, 2, yappRoundedRect, 10, yappCoordPCB, yappCenter]
];

The result for the first object is on the left, for the second on the right:

Last updated