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. Advanced Options

Position reference

n(e) = { <yappOrigin>, yappCenter }

Object locations can be specified in two ways, either at the origin or centered .

yappOrigin specifies the reference to be the origin of the bounding rectangle.

yappCircle changes the reference to be the center of the object.

// Sample Lid Cutouts
cutoutsLid  = 
[
    [10, 10, 10, 20, undef, yappRectangle]                              //(A)
   ,[10, 50, 10, 20, undef, yappRectangle, yappCenter]                  //(B)

   ,[30, 10, undef, undef, 5, yappCircle, ]                             //(C)
   ,[30, 50, undef, undef, 5, yappCircle, yappCenter]                   //(D)
 
   ,[50, 10, 10, 20, 2, yappRoundedRect, ]                              //(E)
   ,[50, 50, 10, 20, 2, yappRoundedRect, yappCenter]                    //(F)
 
   ,[70, 10, 15, undef, 10, yappCircleWithFlats, ]                      //(G)
   ,[70, 50, 15, undef, 10, yappCircleWithFlats, yappCenter]            //(H)
 
   ,[90, 10, 5, 2, 8, yappCircleWithKey, ]                              //(I)
   ,[90, 50, 5, 2, 8, yappCircleWithKey, yappCenter]                    //(J)
 
   ,[110, 10, 20, 20, undef, yappPolygon, shape6ptStar]                 //(K)
   ,[110, 50, 20, 20, undef, yappPolygon, shape6ptStar, yappCenter]     //(L)
PreviousSpecify a PCBNextPolygon Definitions

Last updated 1 year ago