Update a component in place
update_componentReplace a component's footprint or symbol in an Altium library in place, preserving its position. Preview changes with dry-run before modifying the file.
Instructions
Update a component in-place within an Altium library file, preserving its position. For PcbLib, provide a footprint object. For SchLib, provide a symbol object. The component is matched by name. Use dry_run=true to preview changes without modifying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | For SchLib: the symbol to store, in the shape write_schlib takes per symbols entry | |
| dry_run | No | If true, show what would be updated without actually modifying the file | |
| filepath | Yes | Path to the .PcbLib or .SchLib file | |
| footprint | No | For PcbLib: the footprint to store, in the shape write_pcblib takes per footprints entry | |
| component_name | Yes | Name of the component to update (must exist in library) |