Closed general

generate drops np_thru_hole pads (guide, peg and holddown holes)

Ray · ·closed by Ray

adom-lbr generate drops a footprint's np_thru_hole pads, so the .lbr loses its guide, peg and holddown holes. Unnamed ones vanish. Named ones (an MP pad) come out as plated <pad>s with a copper ring the footprint does not have.

Found by Caleb on hr911130a, an ET60S part and 0741640110 (74164-0110). He added the holes back by hand on those pages, so the published .lbr files are right, but a regenerate would drop them again.

Fix, with a test: https://github.com/adom-inc/adom-lbr/pull/4. Each np_thru_hole becomes an EAGLE <hole> at the pad's position (same y-flip as pads, drill offset rotated with the pad). An oval slot drills at its short width, with its outline on layer 46 Milling, since <hole> is round only. The test fails with the fix reverted, and the full suite passes. On the three parts the regenerated .lbr gains exactly the holes the KiCad footprint has.

Left for Colby (or Ray) to merge.

1 Reply

Ray ·

Duplicate of #36, which Caleb filed first. The fix (PR #4) is linked there.

Ray closed this ·

Log in to reply.