Copy a component to another library
copy_component_cross_libraryCopy a component from one Altium library to another, preserving its identity and transferring 3D models with options for missing or external references.
Instructions
Copy a component from one Altium library to another. Both libraries must be the same type (PcbLib to PcbLib, or SchLib to SchLib), and different files (use copy_component to duplicate within a library). The component keeps its identity, and the embedded 3D models its bodies reference travel with it; an external STEP file reference is dropped with a warning unless preserve_external_paths is true, since a path relative to the source library rarely resolves elsewhere. Useful for consolidating libraries or sharing components between projects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | No | Optional new name for the component in the target library (defaults to original name) | |
| description | No | Optional new description for the component (defaults to original description) | |
| component_name | Yes | Name of the component to copy from the source library | |
| source_filepath | Yes | Path to the source library file (.PcbLib or .SchLib) | |
| target_filepath | Yes | Path to the target library file (must be same type as source) | |
| ignore_missing_models | No | If true, copy the component even if referenced embedded 3D models are missing (PcbLib only). The component body references will be removed. Defaults to false. | |
| preserve_external_paths | No | If true, preserve external 3D model paths (model_3d field) instead of removing them. The path may need manual adjustment in the target location. Defaults to false. |