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

Ridge Extension

The Ridge Extension provides a local shift to the split so that you can make any opening on the sides of the case that is half in the lid and half in the base.

This is useful if you need to feed a cable inside of the box.

This is the API for the Ridge Extension:


  Extension from the lid into the case for adding split opening at various heights

  Default origin = yappCoordBox: box[0,0,0]

  Parameters:
   Required:
    (0) = pos
    (1) = width
    (2) = height : Distance below the ridge : Negative to move into lid
   Optional:
    (n) = { <yappOrigin>, yappCenter } 
    (n) = { <yappGlobalOrigin>, yappLeftOrigin } : Only affects Top(lid), Back 
                                                   and Right Faces

 Note: use ridgeExtTop to reference the top of the extension for cutouts.
 Note: Snaps should not be placed on ridge extensions as they remove the ridge 
       to place them.

This is an example code for a Ridge (you also have to make a cutout for the Ridge Extension to work)

cutoutsBack = 
[
  //-- [A] Make the hole thru the end of the ridge extansion
    [25,8, 6,  6,  0, yappPolygon, shape6ptStar, yappLeftOrigin
                    , yappCenter, yappCoordBox]

  //-- [B] Make the rounded rect thru the end of the ridge extansion
   ,[55,13, 20, 6,  3, yappRoundedRect, yappCenter, yappCoordBox]

  //-- [C] Make the hexagonal thru the end of the ridge extansion
   ,[38,35, 6, 6,  0, yappPolygon, 0, 30, shapeHexagon, yappCenter
                    , yappCoordBox]

  //-- [D] Make the hole thru the end of the ridge extension
   ,[18,8, 0,  0,  3, yappCircle, yappCenter, yappCoordBox]
];

ridgeExtBack =
[
  //-- [A] Make a ridge extension 6mm wide 8mm from the bottom of 
  //--     the box from the left edge
    [25, 6, 8, yappLeftOrigin, yappCoordBox, yappCenter]
    
  //-- [B] Make a ridge extension 20mm wide 13mm from the bottom 
  //--     of the box
   ,[45, 20, 13, yappCoordBox]
 
  //-- [C] Make a ridge extension 6mm wide 35mm from the bottom 
  //--     of the box
   ,[35, 6, 35, yappCoordBox]

  //-- [D] Make a ridge extension 6mm wide 8mm from the bottom 
  //--     of the box
   ,[15, 6, 8, yappCoordBox]
];

Will have these Ridge Extensions as a result:

PreviousOptional ParametersNextLabels

Last updated 1 year ago