MATLAB or Python functions/scripts to help with things like electrode coordinate placement etc. on PCB layouts in KiCAD specifically.
- Extract coordinates from DXF files: Parse circular elements (electrodes, mounting holes) from CAD drawings
- Interactive GUI: File dialogs and element selection for easy workflow
- Update KiCad PCB files: Automatically update footprint locations based on DXF coordinates
- Coordinate transformations: Apply offsets, flipping, and centering based on PCB schematic style
- Flexible element mapping: Supports multiple element types with configurable metadata
Run the script and follow the GUI prompts:
cd python
python example_update_pcb_from_dxf.pyThe script will guide you through:
- Selecting a DXF file
- Selecting a KiCad PCB file
- Choosing which circular elements to update
- Configuring coordinate transformations
- Updating the PCB file
pip install -r python/requirements.txtRequired packages:
- ezdxf
- numpy
- pandas
- matplotlib