Skip to content

Position PCB in preview and cutouts (BUG?) #134

@mrWheel

Description

@mrWheel

@rosenhauer,

YAPPgenerator_v3.scad [v3.3.7 (2025-04-17)]
OpenSCAD v2025.08.19 [git 6afea6fca]

I have these values:

//-- Defined here so you can define the "Main" PCB using these if wanted
pcbLength           = 100; // front to back (X axis)
pcbWidth            =  98; // side to side (Y axis)
pcbThickness        = 1.6; 
standoffHeight      = 3.0; //<<<<<-- How much the PCB needs to be raised from the base to leave room for solderings and whatnot
standoffDiameter    = 7;
standoffPinDiameter = 2.4;
standoffHoleSlack   = 0.4;

Mark the standoffHeight!

I don't have standoffs defined.

I have this connectors array:

//===================================================================
//  *** Connectors ***
//  Standoffs with hole through base and socket in lid for screw type connections.
//-------------------------------------------------------------------
//  Default origin = yappCoordPCB : pcb[0,0,0]
//  
//  Parameters:
//   Required:
//    p(0) = posx
//    p(1) = posy
//    p(2) = StandHeight : From specified origin 
//    p(3) = screwDiameter
//    p(4) = screwHeadDiameter (don't forget to add extra for the fillet or specify yappNoInternalFillet)
//    p(5) = insertDiameter
//    p(6) = outsideDiameter
//   Optional:
//    p(7) = insert Depth : default to entire connector
//    p(8) = PCB Gap : Default if yappCoordPCB then pcbThickness else 0
//    p(9) = filletRadius : Default = 0/Auto(0 = auto size)
//    n(a) = { yappAllCorners, yappFrontLeft | <yappBackLeft> | yappFrontRight | yappBackRight }
//    n(b) = { <yappCoordPCB> | yappCoordBox | yappCoordBoxInside }
//    n(c) = { yappNoFillet } : Don't add fillets
//    n(d) = { yappCountersink }
//    n(e) = [yappPCBName, "XXX"] : Specify a PCB. Defaults to [yappPCBName, "Main"]
//    n(f) = { yappThroughLid = changes the screwhole to the lid and the socket to the base}
//    n(g) = {yappSelfThreading} : Make the insert self threading specify the Screw Diameter in the insertDiameter
//    n(h) = { yappNoInternalFillet } : Don't add internal fillets (external fillets can still be added)
//-------------------------------------------------------------------
connectors   =
[
// 0, 1, 2, 3,   4,   5,   6,    7, 8, 9, ...
  [5, 5, 3, 3.2, 7.0, 4.3, 8.0,  default, default, yappAllCorners, yappCoordPCB ]
];

This is the result:

Image

If I change standoffHeight = 8.0;

This is the result:

Image

Obviously the PCB is not shown at the right height. And also in preview the connectors on the lid disappear (same goes for button cutout and other cutouts).

Back to standoffHeight = 8.0;
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions