Rename a component
rename_componentRename a component in an Altium library file while preserving its primitives and properties. This atomic operation offers a more efficient alternative to copy and delete for simple name changes.
Instructions
Rename a component within an Altium library file. This is an atomic operation that changes the component's name while preserving all primitives and properties. More efficient than copy + delete for simple renames.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, validate the operation without modifying the file. Default: false | |
| filepath | Yes | Path to the Altium library file (.PcbLib or .SchLib) | |
| new_name | Yes | New name for the component | |
| old_name | Yes | Current name of the component to rename |