pcb_place_via
Places a via at specified PCB coordinates with optional net, layer span, and pad/drill sizes in mils or millimetres, rejecting holes equal to pad size.
Instructions
Place a via at specific coordinates on the active PCB.
Sizes take fractions of a mil, or millimetres through size_mm
and hole_size_mm, so a 1.2/0.6 mm via is exactly that and
matches a metric Routing Via rule. Whole mils made it
1.194/0.610 mm. A hole as wide as the pad is refused.
Args:
x: Via X position in mils
y: Via Y position in mils
net: Net name to assign (optional, empty = no net)
size: Via pad diameter in mils (default 50)
hole_size: Drill hole diameter in mils (default 28)
low_layer: Start layer (default "TopLayer")
high_layer: End layer (default "BottomLayer")
size_mm: pad diameter in mm, used instead of size
hole_size_mm: hole diameter in mm, used instead of
hole_size
Returns: Dictionary with placed via position and size (mils)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| net | No | ||
| size | No | ||
| size_mm | No | ||
| hole_size | No | ||
| low_layer | No | TopLayer | |
| high_layer | No | BottomLayer | |
| hole_size_mm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||