pcb_move_tracks_to_layer
Move all tracks for a specified net to a target PCB layer and add vias at same-net SMD pads that require a layer change.
Instructions
Move all tracks of a net to one layer, adding vias where needed.
Relayers every track of net_name onto target_layer, then drops a
via at each same-net single-layer (SMD) pad that is NOT on the target
layer, since that pad can now only connect through a layer change.
Multilayer (through-hole) pads need no via. This flattens a net's
routing onto one layer, so use it deliberately.
Args: net_name: Net whose tracks move. target_layer: Destination signal layer (e.g. "BottomLayer"). via_size_mils: Via pad diameter for added vias (default 50). via_hole_mils: Via hole diameter (default 28).
Returns: {"net", "target_layer", "moved", "vias_added"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net_name | Yes | ||
| target_layer | Yes | ||
| via_hole_mils | No | ||
| via_size_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||