Export Gencad
export_gencadConvert KiCAD PCB designs into GenCAD assembly/test files, supporting padstack flipping, unique shapes, and origin coordinate options.
Instructions
Export the PCB in GenCAD format via kicad-cli. Assembly/test interchange format. Exposes padstack flip, unique pin/footprint shape generation, drill-file origin, and store-origin-coordinate options. Reads the last SAVED state of the .kicad_pcb.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardPath | No | Path to the .kicad_pcb (default: current board) | |
| defineVar | No | Project variable overrides as 'KEY=VALUE' strings | |
| outputPath | Yes | Output .cad file path | |
| uniquePins | No | Generate unique pin names | |
| flipBottomPads | No | Flip bottom footprint padstacks | |
| useDrillOrigin | No | Use drill/place file origin as origin | |
| storeOriginCoord | No | Save the origin coordinates in the file | |
| uniqueFootprints | No | Generate a new shape for each footprint instance (do not reuse shapes) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |