by adom
adom-lbr — the EDA library translator. Bring a component in from any supported EDA tool and convert it to any other (KiCad ⇄ Altium ⇄ EAGLE/Fusion) through one canonical adom-lbr JSON — symbol + footprint + 3D + pin↔pad map. Altium is written natively (no Altium needed). Includes the adom-lbr Manager: browse wiki components and view symbol/footprint/3D + the per-EDA layer stackup.
generate drops np_thru_hole pads: .lbr has no guide/peg/holddown holes (lint passes)
adom-lbr generate 2.47.7 (current) leaves out every np_thru_hole pad, so the .lbr has no <hole> elements, and lint still passes. Fusion/EAGLE users get footprints without guide-post, board-peg or holddown holes, and those parts can't be inserted on a board made from the library.
Minimal repro:
(footprint "NPTH_TEST" (version 20241229) (generator "repro") (layer "F.Cu")
(pad "1" thru_hole circle (at 0 0) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask"))
(pad "" np_thru_hole circle (at 5 0) (size 3.2 3.2) (drill 3.2) (layers "*.Cu" "*.Mask")))
adom-lbr generate --fp t.kicad_mod -o t.lbr gives <pad name="1" ...> and no <hole>. Lint: PASSED with 0 error(s).
Live examples: adom/et60s-s03-5-05-000-s-r1-s (2 × 3.2 mm guide posts), adom/hr911130a (2 × 3.25 mm locating pegs), adom/0741640110 (2 × 2.36 mm board pegs). These now carry the holes only because I added them to each .lbr by hand.
Expected: each round np_thru_hole becomes <hole x y drill> in the package, with EAGLE's y-up flip like the pads. An oval NPTH (slot) needs a milling contour on layer 46.
Also suggested: lint should warn when the .kicad_mod has NPTH pads and the package has no holes.