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

Hooks

Hooks gives you a tool to add objects to your projectbox. But be aware that hooks are only partially controlled by the YAPPgenerator!

module baseHookOutside()
{
  translate([shellLength/2, shellWidth-roundRadius, 0])
  {
    color("green") 
    {
      cube([10,20,((basePlaneThickness/2)+(baseWallHeight-ridgeHeight))]);
    }
  }
} //  baseHookOutside()


module baseHookInside()
{
  translate([50, wallThickness, (basePlaneThickness/2)])
  {
    color("blue")
    {
      cube([2,(shellWidth-(wallThickness*2)),((basePlaneThickness/2)+baseWallHeight)]);
    }
  }
} //  baseHookInside()


module lidHookOutside()
{
} //  lidHookOutside()


module lidHookInside()
{
  translate([50, wallThickness
               , ((lidPlaneThickness/2)+(lidPlaneThickness+lidWallHeight+0.05))*-1])
  {
    color("red")
    {
      cube([2,(shellWidth-(wallThickness*2)),(lidPlaneThickness+lidWallHeight)]);
    }
  }
} //  lidHookInside()

Hooks are only partially controlled by the YAPPgenerator!

PreviousImagesNextDebugging

Last updated 1 year ago