pcb_autoroute_apply
Applies a finished autoroute job's tracks and vias to the specified PCB board, refusing mismatched files and optionally creating a checkpoint and repouring polygons.
Instructions
Write a finished pcb_autoroute job's tracks and vias to the board.
Refuses unless the focused board is expect_file. With
checkpoint (default), first snapshots the board's folder as it
is ON DISK, so it can be restored with app_restore_checkpoint.
Nothing is saved first: unsaved edits in the editor are not in the
checkpoint, so save the board yourself beforehand if it has any.
Coordinates, widths and via sizes keep their decimals.
Args:
job_id: a layout_route job that has finished.
expect_file: full path of the board the job routed.
checkpoint: take a checkpoint first (default True).
repour: repour the board's polygons afterwards when the job
relied on them, as planes or as pours joining a net, or
routed through their old poured copper (default True). A
poured net's connections are not there, and the new copper
is not cleared, until the polygons are repoured round it.
Returns:
{"tracks": {placed, failed}, "vias": {placed, failed}, "checkpoint": ..., "repoured": bool, "via_in_pad": [...], "notes": [...]} or {"error": ...}. via_in_pad lists the
vias written into pads (BGA balls, exposed pads), which the
fabrication notes must ask to be filled and capped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| repour | No | ||
| checkpoint | No | ||
| expect_file | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||