Set Board Origin
set_board_originDefine the board's auxiliary (drill/place) and grid origins in a KiCad PCB file to align exports like pick-and-place and drill plots to the intended reference point.
Instructions
Set the auxiliary (drill/place) origin and/or grid origin of a .kicad_pcb. The aux origin is the datum used by export_drill's drillOrigin:'plot' option and by pick-and-place / plot exports with useAuxOrigin. File-based (LoadBoard -> SaveBoard): if the board is open in the KiCad GUI, a later GUI save will overwrite this edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Origin X coordinate | |
| y | Yes | Origin Y coordinate | |
| type | No | Which origin to set (default: aux) | |
| unit | No | Coordinate unit (default: mm) | |
| boardPath | Yes | Path to the .kicad_pcb file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |