ipc_add_board_outline
Add the board outline: one closed polygon on Edge.Cuts of the board in the PCB editor, when the board has no Edge.Cuts shapes.
Instructions
Add the board outline: one closed polygon on Edge.Cuts of the board in the PCB editor, when the board has no Edge.Cuts shapes.
KiCad adds the outline in one undo step. A board that has Edge.Cuts shapes gives an error: the tools delete no items (KiCad 10.0.6 gives no result of a delete, limit delete_results); the user deletes the old outline in the PCB editor. Footprints can have Edge.Cuts shapes too: the tool does not count them. KiCad 10.0.6 must have the schematic editor closed (KiCad bug #24966). An outline that crosses itself, has the same point two times one after the other, or has no area gives an error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"board_path": "<board_path>",
"outline": "<outline>"
},
"name": "ipc_add_board_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outline | Yes | The corners of the outline in mm (3 or more points, the first point not again at the end). | |
| board_path | Yes | The path of the .kicad_pcb file that is open in the PCB editor. | |
| line_width_mm | No | The line width. Default: the graphics defaults of the board for Edge.Cuts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |