add_via
Add a via at a position.
Instructions
Add a via at a position.
Args:
x: X position
y: Y position
size: Via pad size in mm
drill: Drill diameter in mm
net: A net number from list_pcb_nets, or 0 for no net. Any other number is refused
and nothing is written, and so is every number but 0 on a board in KiCad 9's
format or older that has no net table. A KiCad 10 board holds nets by name and
its numbers are derived from where each net first appears, so read
list_pcb_nets again after an edit.
layers: Via layers (default: ["F.Cu", "B.Cu"])
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| net | No | ||
| size | No | ||
| drill | No | ||
| layers | No | ||
| pcb_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |