Closed bug report

import-kicad drops the oval-drill slot width (slot -> round hole of the slot length) and assemble-altium writes plated:false pegs as plated

idan gida · ·closed by Colby Knox

adom-lbr 2.47.13 · Altium Designer 26.3 · Windows 11 (Hydrogen local workspace) · observed 2026-12-04

Summary

Two faults turn a correct KiCad footprint into an Altium footprint that a fab cannot build as drawn:

  1. import-kicad loses the slot width of an oval drill. (drill oval 0.6 1.7) becomes "drill_mm": 1.7 with no width field, so the slot turns into a round 1.7 mm hole, larger than its own 1.0 mm wide pad.
  2. assemble-altium writes non-plated holes as plated. Pads that the JSON marks "plated": false (KiCad np_thru_hole pegs) come out of the .PcbLib as plated multilayer pads.

Repro (stock KiCad footprint, nothing project-specific)

KiCad 9 Connector_USB.pretty/USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal.kicad_mod:

  • two pegs: (pad "" np_thru_hole circle ... (drill 0.65))
  • four shell pads: (pad "SH" thru_hole oval (size 1 2.1) (drill oval 0.6 1.7)) and (size 1 1.8) (drill oval 0.6 1.4)
adom-lbr import-kicad --sym <any>.kicad_sym --fp USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal.kicad_mod --mpn USB4105-GF-A --out usb.adom-lbr.json
adom-lbr assemble-altium --out out/LIB usb.adom-lbr.json

The JSON pads read:

{"number": "", ..., "w_mm": 0.65, "h_mm": 0.65, "drill_mm": 0.65, "shape": "circle", "plated": false}
{"number": "SH", ..., "w_mm": 1.0, "h_mm": 2.1, "drill_mm": 1.7, "shape": "oval", "plated": true}

Opened in Altium, the .PcbLib footprint shows:

  • the two pegs: Plated = True, so the NC drill file plates them;
  • the four SH pads: HoleType = round, HoleSize 1.70 / 1.40 mm in a 1.0 mm wide pad. Expected: eSlotHole, HoleSize 0.60 mm, HoleWidth (slot length) 1.70 / 1.40 mm, along the pad's long axis.

Expected

  • The canonical JSON carries the slot, e.g. drill_mm = 0.6 plus drill_length_mm = 1.7 (or drill_w_mm / drill_h_mm).
  • Every writer emits a slot: Altium eSlotHole with HoleWidth and HoleRotation (pad-relative); KiCad (drill oval W L); EAGLE: a slot is not representable, so warn.
  • plated: false is honoured by the Altium writer (Plated = False on a multilayer pad).

Impact

Silent: lint passes, the footprint looks right in 2D, and the board passes DRC. The defect only shows in the NC drill files: the pegs get plated and the slots become oversized round holes that cut through the pad ring. We caught it only by reading the drill Gerbers back.

Related, closed: #36 / #37 (generate dropped np_thru_hole pads).

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Thanks for the detailed report. Both faults are fixed in adom-lbr 2.47.14 (adom-wiki pkg update adom/adom-lbr).

Slots. import-kicad now keeps an oval drill as a slot: "drill_mm": 0.6 plus "drill_slot_mm": [0.6, 1.7], in the pad's own frame. A reader that doesn't know the new field still drills the narrow side, so it never cuts outside the slot. In each lane:

  • Altium: a slot hole with HoleSize 0.6 mm, slot length 1.7 / 1.4 mm, and a rotation relative to the pad (along the pad's long axis for these shell pads).
  • KiCad: export writes (drill oval 0.6 1.7) back.
  • EAGLE/Fusion: a pad drill can only be round, so generate drills the slot's width, draws the full slot on layer 46 Milling, and prints WARN: [slot-drill].

Non-plated holes. Pads with "plated": false (the two 0.65 mm pegs) are now written to the .PcbLib with Plated = False. Reading the library back with import-altium returns both the plated flag and the slots.

Your footprint (KiCad's GCT USB4105-xx-A) now gives two non-plated 0.65 mm pegs and four plated slots (0.6 x 1.7 and 0.6 x 1.4 mm).

I checked the slot record against slotted connector pads saved by Altium itself, but I haven't opened this output in Altium. If HoleType, HoleSize or Plated read differently in your 26.3, please reopen this issue.

Colby Knox closed this ·

Log in to reply.