Skip to main content
Footprints

<platedhole />

Overview

The <platedhole /> element is used to represent a plated through hole on a PCB.

export default () => (
<board width="10mm" height="10mm">
<chip name="U1" footprint={
<footprint>
<platedhole
pcbX="0mm"
pcbY="0mm"
shape="circle"
holeDiameter="1mm"
outerDiameter="2mm"
portHints={["pin1"]}
/>
</footprint>
} />
</board>
)
PCB Circuit Preview

Plated Hole Shapes

<platedhole /> supports these shapes:

  • circle - A circular plated hole
  • oval - An oval plated hole
  • pill - A pill-shaped plated hole (rounded rectangle)
  • circular_hole_with_rect_pad - A circular drill with a rectangular copper pad
  • pill_hole_with_rect_pad - A pill-shaped drill with a rectangular copper pad
  • hole_with_polygon_pad - A hole with a custom polygon copper pad

Each shape has different properties.

Properties

PropertyShapeDescription
holeDiametercircle, circular_hole_with_rect_pad, hole_with_polygon_padDiameter of the drill hole when the hole is circular
outerDiametercircleDiameter of the copper pad
holeWidthoval, pill, pill_hole_with_rect_pad, hole_with_polygon_padWidth of the drill hole
holeHeightoval, pill, pill_hole_with_rect_pad, hole_with_polygon_padHeight of the drill hole
innerWidthoval, pillDeprecated alias for holeWidth
innerHeightoval, pillDeprecated alias for holeHeight
outerWidthoval, pillWidth of the copper pad
outerHeightoval, pillHeight of the copper pad
rectPadWidthcircular_hole_with_rect_pad, pill_hole_with_rect_padWidth of the rectangular copper pad
rectPadHeightcircular_hole_with_rect_pad, pill_hole_with_rect_padHeight of the rectangular copper pad
rectBorderRadiuscircular_hole_with_rect_pad, pill_hole_with_rect_padCorner radius for the rectangular copper pad
padOutlinehole_with_polygon_padPolygon points for the copper pad outline
holeShapehole_with_polygon_padHole shape inside the polygon pad: circle, oval, pill, or rotated_pill
holeOffsetXpill, circular_hole_with_rect_pad, pill_hole_with_rect_pad, hole_with_polygon_padX offset of the drill hole relative to the pad center
holeOffsetYpill, circular_hole_with_rect_pad, pill_hole_with_rect_pad, hole_with_polygon_padY offset of the drill hole relative to the pad center
rectPadpillWhen true, shape inference prefers pill instead of oval
portHintsallArray of port names that this hole connects to
connectsToallNet or nets that this plated hole should connect to
solderMaskMarginallSolder mask opening margin around the plated hole
coveredWithSolderMaskallWhether the plated hole should be covered by solder mask
pcbXallX position of the hole center on the PCB
pcbYallY position of the hole center on the PCB
pcbRotationoval, pill, circular_hole_with_rect_pad, pill_hole_with_rect_padRotation of the plated hole and pad geometry
nameallOptional name identifier for the plated hole