Export Pos
export_posCreate pick-and-place files from KiCad PCBs with configurable side, format, units, and component filters. Uses kicad-cli to read the saved board and output assembly data.
Instructions
Generate a component placement (position / pick-and-place) file via kicad-cli, exposing the full CLI option set (side, format, units, bottom-negate-X, drill-file origin, SMD-only, exclude through-hole / DNP, gerber board edge). Rich CLI sibling of export_position_file. Reads the last SAVED state of the .kicad_pcb.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | Board side (gerber format only supports front or back; default both) | |
| units | No | Output units; ascii or csv format only (default in) | |
| format | No | Output format (default ascii) | |
| smdOnly | No | Include only SMD footprints (ascii/csv only) | |
| boardPath | No | Path to the .kicad_pcb (default: current board) | |
| excludeDnp | No | Exclude all footprints with the Do Not Populate flag set | |
| outputPath | Yes | Output position file path | |
| excludeFpTh | No | Exclude all footprints with through-hole pads (ascii/csv only) | |
| bottomNegateX | No | Use negative X coordinates for bottom-layer footprints (ascii/csv only) | |
| gerberBoardEdge | No | Include board edge layer (Gerber only) | |
| useDrillFileOrigin | No | Use drill/place file origin (ascii/csv only) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |