pcb_normalize_vias
Normalize free vias to their Routing Via rule's preferred diameter and hole, or to explicit sizes, with net/size filters and dry-run preview.
Instructions
Set free vias to their Routing Via rule's sizes, or to given ones.
Without size_mils/hole_mils, each via takes its dominant
Routing Via rule's preferred diameter and hole. A rule in template
mode ("Templates Used To Check Via") is refused for its vias: its
size fields are not what it checks, and reading them once set nearly
every via on a board to a pad no larger than its hole. Use pcb_apply_via_template
for a template rule. Any target without an annular ring is refused.
Refused vias are left as they were.
Args: size_mils, hole_mils: An explicit diameter and hole, together. net: Only vias on this net. from_size_mils, from_hole_mils: Only vias at this size now (within 0.05 mil), e.g. to fix one group. dry_run: Report what would change and change nothing.
Returns:
changed, unchanged, failed (did not read back), the
refusal counts, and before/after: vias counted by
"diameter/hole" in mils. success is false when any via was
refused or failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | No | ||
| dry_run | No | ||
| hole_mils | No | ||
| size_mils | No | ||
| from_hole_mils | No | ||
| from_size_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||