lib_link_footprint
Links a footprint to a named schematic component, replacing any existing footprint model by default so component-to-footprint assignments stay current.
Instructions
Link a footprint to a schematic component.
With replace=True (the default) any existing footprint (PCBLIB) model on the component is removed first, so re-linking replaces rather than appends. Pass replace=False to keep prior footprint models and add another (the old append behaviour, which bloats a component with duplicate models).
Args: component_name: Name of the schematic component. Resolved by library reference and made current before linking, so the model lands on the symbol you name rather than on whatever was last created. Leave empty to target the current component. footprint_name: Name of the footprint to link footprint_library: NOT APPLIED, accepted only so existing callers keep working. The footprint is bound by NAME via the implementation's datafile link, with a deliberately EMPTY location: passing a .PcbLib path there wedges AD26 (see Lib_LinkFootprint in Library.pas). Install the library and keep footprint names unambiguous instead. replace: remove existing footprint models before adding (default True)
Returns: Dictionary confirming link
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | ||
| component_name | Yes | ||
| footprint_name | Yes | ||
| footprint_library | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||