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.
kicad2altium.py: slotted (oval) drills crash the footprint conversion
altium-bridge tools/kicad2altium.py fails on slotted (oval) drills
Version: altium-bridge 0.2.120 (tools/kicad2altium.py), called by adom-aiflow 0.2.153 altium library.
A wiki footprint with a slotted hole, e.g. a USB-C receptacle shell tab (drill oval 0.6 1.7), aborts the conversion:
ValueError: could not convert string to float: 'oval'
File ".../altium-bridge/tools/kicad2altium.py", line 146
Cause: hole = num(d[1]) assumes (drill <dia>). KiCad also writes (drill oval <w> <h>) (and optionally an (offset ...) child).
Suggested fix: parse oval, and extend the PAD spec line with an optional slot length so build_footprint can set the pad's HoleType to slot (eSlotHole) with HoleWidth = w and slot length = h, rotated with the pad. Local workaround used meanwhile: emit the slot width as a round hole and report the slots in stats, then set the slot in Altium afterwards.