Duplicate a component
copy_componentDuplicate a component in an Altium library under a new name, generating fresh GUIDs and unique IDs to create independent variants.
Instructions
Copy/duplicate a component within an Altium library file. Creates a new component with a different name and identical primitives, but its own identity: the copy's GUIDs and unique ids are minted fresh rather than shared with the original. Useful for creating variants.
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) | |
| description | No | Optional description for the new component (defaults to source description) | |
| source_name | Yes | Name of the component to copy | |
| target_name | Yes | Name for the new copied component |