ByteBard
bc7de47053
Fix Gerber drill file export for KiCAD 9.0
Replace EXCELLON_WRITER.SetOptions() Python API with kicad-cli subprocess for reliable drill file generation across KiCAD versions.
Issue:
- KiCAD 9.0 changed EXCELLON_WRITER.SetOptions() signature
- Added 3 required parameters: aMinimalHeader, aOffset, aMerge_PTH_NPTH
- API signature unstable across versions
Fix:
- Replace Python API with kicad-cli subprocess approach
- Use 'kicad-cli pcb export drill' command
- More stable and version-independent
- Generates separate PTH/NPTH drill files correctly
Command used:
```
kicad-cli pcb export drill \
--output <dir> \
--format excellon \
--drill-origin absolute \
--excellon-separate-th \
<board_file>
```
Testing:
- Integration test: 12/12 tests passed (100% success)
- Generates PTH.drl and NPTH.drl files correctly
- Works with KiCAD 9.0.6 on Windows
Related to earlier fixes:
- design_rules.py: SetCurrent* → SetCustom* API migration
- view.py: PlotLayer() signature update
- component.py: FP_VIRTUAL → FP_BOARD_ONLY
Status: All KiCAD 9.0 API changes resolved ✅
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 16:12:22 -05:00
..
2025-11-17 15:40:20 -05:00
2025-10-25 20:48:00 -04:00
2025-10-25 20:48:00 -04:00
2025-10-25 20:48:00 -04:00
2025-11-14 16:38:16 -05:00
2025-10-25 20:48:00 -04:00
2025-11-14 16:38:16 -05:00
2025-11-17 16:12:22 -05:00
2025-10-25 20:48:00 -04:00
2025-11-05 09:10:45 -05:00
2025-10-25 20:48:00 -04:00
2025-11-05 09:10:45 -05:00
2025-10-25 20:48:00 -04:00