pcb_clear_source_footprint_library
Clears SourceFootprintLibrary on board components to remove stale library references that block ECO and Update From Library; optionally restrict clearing to specified designators.
Instructions
Clear Comp.SourceFootprintLibrary on board components.
Background: when a project is created from an Integrated
Library, every placed component remembers WHICH library it
came from. If the user later renames, moves, or consolidates
that library, ECO and "Update From Library" start failing
with "library not found" warnings because the component
still points at the stale path. Clearing
SourceFootprintLibrary unpins it so Altium re-matches by
library-reference name from whatever's currently in
Available Libraries.
This is a standard step when consolidating multiple legacy libraries into a single curated library: drop the new lib into Available Libraries, call this tool, then run an ECO -- the components now bind to the new library.
Generalized with an optional filter.
Args:
designator_filter: Restrict to these designators
(e.g. ["U1", "U5"]). None / empty clears all
components on the board. Match is case-sensitive
whole-string.
Returns:
Dict with {total, cleared}. total counts components
inspected after filter; cleared counts ones that
actually had a non-empty SourceFootprintLibrary cleared.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| designator_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||