LAY-3 Auto courtyard check and fix¶
| Severity | Status | Implementation |
|---|---|---|
| warning | planned | hard, depends on TOOL-3 |
Looks at. Courtyards, pads and 3D body outlines per footprint.
What it catches. A courtyard that is not an even margin around the part: tight on one side, generous on another, smaller than the 3D body, or missing (LIB-12). The catalogue's note asks that the courtyard sit equidistant from the 3D body and pad boundary, and that better_erc can add a proper one on request.
Why it matters. Courtyard overlap is what DRC uses to keep parts apart; a courtyard that is too small lets parts touch, one that is too large forces needless space or gets ignored. Courtyards drawn by hand around imported footprints are often just the pad outline, which ignores an overhanging body (an inductor wider than its pads, a connector with a latch).
Example. A 5x5 mm shielded inductor on a footprint whose courtyard was drawn around its 4.5 mm pad span only: a 0402 decoupling capacitor placed against the courtyard ends up under the inductor's body edge. KLC asks for 0.25 mm around the combined body and pads.
How to check. Compute the union of the pads and the 3D model's outline (from the footprint's model reference) and compare it, grown by the margin from KLC F5.3, with the drawn courtyard; report a margin outside tolerance on any side. The fix mode generates the courtyard from the same union.
Fix. Redraw the courtyard: 0.25 mm around body and pads (0.15 mm for parts under 1.5 mm, 0.5 mm for connectors, canned capacitors and crystals, 1.0 mm for BGAs), plus mating space for connectors.
References. KLC F5.3 (courtyard layer requirements); IPC-7351B, Generic Requirements for Surface Mount Design and Land Pattern Standard (courtyard excess), by title.