YAPPgenerator_en
  • Yet Another Parametric Projectbox generator
  • What you need
  • Getting Started
  • Design Philosophy
  • Coordinate Systems
  • YAPPgenerator API
  • YAPP Box Settings
    • Multiple PCBs
  • Standoffs
    • pcbStands (advanced)
  • Connecting Base and Lid
    • Connecting Base and Lid (advanced)
  • Cutouts
    • n(h) - yappFromInside
    • p(6) - Cutout Depth
    • Placement of the project box
      • Cutouts in the Base Plane
      • Cutouts in the Lid Plane
      • Cutouts in the Front Plane
      • Cutouts in the Back Plane
      • Cutouts in the Left Plane
      • Cutouts in the Right Plane
    • Shapes
    • Optional Parameters
      • p(7) - Angle
      • n(a) = Polygon Definition
      • n(b)/n(c) - Mask Definition
      • n(d) - Coordinate System
      • n(e) - Position reference
      • n(f) - Alternate Origin
      • n(g) - PCB Selection
  • Box Mounts
    • boxMounts (advanced)
  • Snap Joins
  • Light Tubes
  • Push Buttons
    • Optional Parameters
  • Ridge Extension
  • Labels
  • Images
  • Hooks
  • Debugging
  • Advanced Options
    • Specify a PCB
    • Position reference
    • Polygon Definitions
    • Mask Definitions
  • Generating STL file from KiCad
  • License
Powered by GitBook
On this page
  1. Cutouts

p(6) - Cutout Depth

Previousn(h) - yappFromInsideNextPlacement of the project box

Last updated 1 year ago

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: