Manage symbol footprint links
manage_schlib_footprintsList, add, or remove PCB footprint links for a symbol in an Altium .SchLib. Resolve footprints via a .PcbLib path or link by name, with automatic timestamped backups before changes.
Instructions
Manage the footprint links (PCB models) of one symbol in a .SchLib: list them, add one, or remove one. A link names a .PcbLib footprint; add refuses a name already linked and remove refuses one that is not (names match without regard to case), and neither touches the .PcbLib itself. Give library_path on add when Altium should resolve and preview the footprint from a specific library; omit it to link by name only. Every change backs the library up to a timestamped .bak beside it (the five newest are kept) before saving. Use manage_schlib_parameters for parameters such as Value, get_component or read_schlib to see the links together with the rest of the symbol, and update_component to rewrite a symbol wholesale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Path to the Altium SchLib file | |
| operation | Yes | Operation to perform: list (all footprints), add (new footprint link), remove (delete footprint link) | |
| description | No | Footprint description (optional for add). Keep to 256 characters if the library will be imported into an Altium 365 workspace — that importer refuses longer ones; a longer description is written and reported as a validation warning. | |
| library_path | No | Optional (add): absolute path to the .PcbLib containing the footprint, written as ModelDatafile0 so Altium can resolve and preview the model. Omit to link by name only (requires the library to be installed/in the project, else 'footprint not found'). | |
| component_name | Yes | Name of the symbol to manage footprints for | |
| footprint_name | No | Footprint name (required for add, remove) |