UL_HOLE

Data members

   
diameter[layer] int (see note)
drill int
drillsymbol int
x, y int (center point)

See also UL_BOARD, UL_FOOTPRINT

Notes

diameter[] is only defined for layers LAYER_TSTOP and LAYER_BSTOP and returns the diameter of the solder stop mask in the given layer.

drillsymbol returns the number of the drill symbol that has been assigned to this drill diameter (see the manual for a list of defined drill symbols). A value of 0 means that no symbol has been assigned to this drill diameter.

Example

board(B) {
  B.holes(H) {
    printf("Hole: (%f %f), drill=%f\n",
           u2mm(H.x), u2mm(H.y), u2mm(H.drill));
    }
  }