Merge libraries
merge_librariesMerge Altium libraries of the same type into one file, copying components and embedded 3D models. Supports duplicate handling and dry-run preview.
Instructions
Merge multiple Altium libraries into a single library. All source libraries must be the same type (all PcbLib or all SchLib). Components are copied from each source into the target library, together with the embedded 3D models their bodies reference (a model shared by several footprints is copied once; a body whose model is missing from its source is merged as-is and reported in warnings). External STEP file references are carried unchanged. Use dry_run=true to preview what would be merged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, show what would be merged without actually modifying any files | |
| on_duplicate | No | How to handle duplicate component names: 'skip' (ignore duplicates), 'error' (fail on duplicates), 'rename' (auto-rename with suffix). Default: 'error' | |
| target_filepath | Yes | Path to the target library file (will be created or appended to) | |
| source_filepaths | Yes | Array of paths to source library files (.PcbLib or .SchLib) |