audit_find_visible_supplier_pn
Identifies schematic components with visible supplier-PN parameters that violate BOM hygiene, returning designators and values so they can be hidden in bulk.
Instructions
Find schematic components with a VISIBLE supplier-PN parameter.
BOM hygiene rule: only the manufacturer's MPN should appear on the SCH PDF. Supplier part numbers (Digi-Key, Mouser, Newark, Arrow, RS, Farnell) change over time -- a Digi-Key bin gets retired, the part is re-binned under a new Digi-Key SKU, and an SCH PDF saying "Digi-Key 296-1234-1-ND" sends the next person picking the BOM five years from now on a wild goose chase. Manufacturer + MPN is stable; supplier PNs are not.
Detects any component parameter whose name starts with
"supplier" (case-insensitive) AND IsHidden=False. Catches
the legacy "Supplier Part Number 1" along with any free-text
"Supplier" / "Supplier 1" variants designers create.
Returns:
Dict with {checked, violations, items[]} where each item
carries {designator, parameter, value} for a visible
supplier-PN parameter. Pair with sch_set_components_parameters
to hide them in bulk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||