Batch-update a library
batch_updateApply batch edits across an Altium library: update track widths, rename layers, or change component parameters. Preview with dry_run before modifying the file.
Instructions
Perform one batch operation across all components in an Altium library file. PcbLib: 'update_track_width' (change every track of from_width to to_width, within tolerance) and 'rename_layer' (move every primitive from from_layer to to_layer). SchLib: 'update_parameters' (set parameter values across symbols). Use dry_run=true to preview changes without modifying the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, show what would be updated without actually modifying the file | |
| filepath | Yes | Path to the Altium library file (.PcbLib or .SchLib) | |
| operation | Yes | The batch operation to perform. PcbLib: update_track_width, rename_layer. SchLib: update_parameters. | |
| parameters | Yes | Operation-specific parameters |