sch_set_components_parameters
Bulk-update parameters on placed schematic components in one undo group to avoid slow per-component loops. Use after audits flag parameter bugs like wrong supplier PN or placeholders.
Instructions
Bulk-update parameters on PLACED schematic components.
Single IPC call wraps N component updates inside one
PreProcess/PostProcess undo group. Avoids the 10-100x slowdown
of looping the singular variant. The canonical follow-up tool
after audits that flag parameter-level bugs --
audit_find_visible_supplier_pn,
audit_find_placeholder_values,
audit_find_mpn_inconsistencies -- recommend it.
Each stamp targets one component by designator and sets one or more parameters. Special keys allowed:
Value,Comment,Manufacturer,MPN,Footprint,Description,HelpURL, etc.Custom parameters: any key name. Unknown parameters are CREATED if they don't already exist on the component.
Args:
stamps: List of dicts. Each dict must include designator
and one or more parameter key/value pairs. Example:
[{"designator": "R1", "Value": "10k", "Manufacturer": "Yageo", "MPN": "RC0603FR-0710KL"}, {"designator": "C5", "Value": "100nF"}]
sheet_path: Optional explicit SchDoc path. Empty uses the
currently-focused schematic.
Returns:
Dict with {updated, failed, total}. updated is the
count of components whose parameters were touched;
failed is the count of stamps that couldn't be applied
(designator not found, parameter not settable, etc).
A Footprint key repoints the part's footprint model;
footprints_applied counts the ones that read back the
new name and footprints_not_applied lists designators
whose part has no footprint model or did not take it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stamps | Yes | ||
| sheet_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||