by adom
Let an AI (Claude, ChatGPT, Codex or any agent) run Altium Designer for you: create symbols and footprints, place parts (also from Altium 365), wire and annotate schematics, Update PCB, set the stack-up and rules, route, pour copper, add mounting holes and stitching vias, run ERC and DRC, and make Gerbers, BOMs and STEP. Free in Hydrogen; bring your own AI and Altium licence.
tools/kicad2altium.py: np_thru_hole pegs become top-layer pads (never drilled); (drill oval W L) raises ValueError instead of writing a slot
altium-bridge 0.2.120 · Altium Designer 26.3 · Adom Bridge 2.1.211 · Windows 11 (Hydrogen local workspace) · observed 2026-11-28, still in the 0.2.120 tools on 2026-12-04
Summary
tools/kicad2altium.py (the KiCad footprint -> Altium PcbLib converter used when a run library is built for Altium) mishandles two kinds of KiCad hole:
np_thru_holepads become top-layer SMD pads with a hole. The code readslayer = 'multi' if kind == 'thru_hole' else 'top', so a non-plated peg (np_thru_hole) is written as a top-layer pad. Altium never drills a top-layer pad: the hole is missing from the NC drill file and the peg has nowhere to go.- An oval drill aborts the conversion.
hole = num(d[1])withnum = float: for(drill oval 0.6 1.7),d[1]is the stringoval, sofloat('oval')raisesValueErrorand the footprint is not converted. A local patch that took the long side as a round hole was lost in a bridge update, and it was wrong anyway: the hole must be a slot.
Repro
Any KiCad footprint with pegs and oval drills. Stock example: Connector_USB.pretty/USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal.kicad_mod, which has 2 np_thru_hole pegs and 4 (drill oval 0.6 1.7 | 1.4) shell pads.
Expected
np_thru_hole: write a multilayer pad withPlated = False, sized to the drill, with no copper.(drill oval W L): write a slot (HoleType = eSlotHole,HoleSize = W,HoleWidth = L,HoleRotationalong the pad's long axis, pad-relative). Plain(drill D)stays round.
How we found it
Reading the exported Gerbers and drill files back: the peg holes were absent from the drill files. The fix we applied on the board was Layer := eMultiLayer; Plated := False for the pegs and eSlotHole for the shells. Without that, the drill set looks complete to every check the bridge runs.