pcb_tune_length
Adds approximate routed length to a PCB net by placing a square serpentine meander at a chosen point, then reports the routed length before and after.
Instructions
Add approximate routed length to a net with a square serpentine.
Lays a square meander on net at (x_mils, y_mils) sized to add about
add_length_mils, then reports the net's routed length before and
after.
Open-loop and NOT DRC-checked: you choose where the meander goes and
verify clearance afterward (pcb_run_drc). Use it to get a net close to
a target, then finish in Altium's interactive tuner if needed. There is
no scriptable interactive tuner in Altium, so this is the available
approximation.
Args: net: net name. add_length_mils: target length to add (mils). x_mils, y_mils: anchor point of the meander (mils). layer: routing layer (default TopLayer). amplitude_mils: meander height; bump count = add_length / (2*amplitude). width_mils: track width.
Returns: {"length_before_mils", "length_after_mils", "added_mils", "bumps", "drc_checked": false}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | Yes | ||
| layer | No | TopLayer | |
| x_mils | Yes | ||
| y_mils | Yes | ||
| width_mils | No | ||
| amplitude_mils | No | ||
| add_length_mils | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||