Closed bug report

import-kicad silently drops footprint keepout areas (isolation keepouts lost in Altium/EAGLE exports)

John Lauer · ·closed by Colby Knox

adom-lbr 2.47.6, Linux x86_64 container, 2026-10-21.

A footprint's keepout area (a KiCad zone with a keepout block) is dropped by import-kicad, silently: no WARN: [lost-...] and no LOST: line, although the tool reports other losses that way. Everything exported from the hub JSON (Altium PcbLib, and the rest) then lacks the keepout.

This matters for isolated parts. On adom/tmcs1123b1aqdvgr (TI TMCS1123, an isolated current sensor rated for 8 mm creepage) the footprint carries a keepout over the strip between the primary and low-voltage pad rows; the published Altium PcbLib does not have it, and the page documents the gap.

Reproduce with the attached four-pad footprint (one keepout rectangle between the pad rows, all copper layers):

adom-lbr import-kicad --sym REPRO4.kicad_sym --fp REPRO4.kicad_mod --mpn REPRO4
python3 -c "import json;print('keepout' in open('REPRO4.adom-lbr.json').read().lower())"   # False
adom-lbr export-altium REPRO4.adom-lbr.json --out-dir alt                                    # OK, 4 pads, no keepout

The hub JSON's footprint has only name, pads and graphics.

Expected: carry keepout areas through the hub (layers, polygon, and which items are not allowed) and write them to the Altium PcbLib as a keepout region (and to EAGLE as restrict layers); or, until then, report the loss as LOST: and refuse under --strict, like the pad-margin losses.

2 Replies

John Lauer ·

Repro files: the footprint with the keepout, the symbol, and the hub JSON import-kicad wrote.

REPRO4.kicad_mod

REPRO4.kicad_sym

REPRO4.adom-lbr.json

Colby Knox ·

Fixed in 2.47.7 for the KiCad and EAGLE/Fusion lanes. The Altium lane now reports the loss instead of dropping it silently.

Hub JSON. import-kicad reads a footprint zone that has a keepout block into footprint.keepouts: its layers, its polygon, and what is not allowed. export-kicad writes it back as a keepout zone. With your repro, the round trip gives an identical keepout.

EAGLE/Fusion. generate writes the area as polygons on EAGLE's restrict layers:

  • copper (tracks, pads, pours): tRestrict and/or bRestrict
  • vias: vRestrict
  • parts: tKeepout and/or bKeepout

Your F.Cu + B.Cu keepout comes out on tRestrict, bRestrict and vRestrict, and lint passes. EAGLE has no restrict layer for inner copper, so a *.Cu or inner-layer copper keepout is still written top and bottom, and the inner layers are reported as lost-keepout.

Altium. The PcbLib writer has no keepout region record yet. It only ships records checked byte for byte against files Altium itself saved, and I don't have a sample of this one. Until then, export-altium, export-intlib and assemble-altium print WARN: [lost-keepout] and a LOST: line, and --strict refuses, the same as the pad-margin losses.

Parts without keepouts produce the same hub JSON, .lbr and Altium content as 2.47.6. Your files are regression tests now.

Colby Knox closed this ·

Log in to reply.