lib_move_footprints
Move matching footprints between PcbLib libraries by explicit names or regex, copying them to the destination and optionally deleting them from the source; use dry runs to verify selections.
Instructions
Move matching footprints between PcbLibs (the PcbLib analog of move).
Copies every matching footprint (all pads and primitives, via a full copy) from source_pcblib to dest_pcblib, then removes them from source unless delete_from_source is False. The footprint counterpart of lib_move_components; together they split a full library.
Provide either names (explicit footprint names) or name_regex (matched against the source's footprint names). With names it is one IPC call; with name_regex the source footprint list is fetched first. A footprint already present in dest is skipped unless overwrite=True.
Args:
source_pcblib: source .PcbLib path.
dest_pcblib: destination .PcbLib path.
names: explicit list of footprint names to move.
name_regex: regex matched against source footprint names when names
is not given.
delete_from_source: remove moved footprints from source (default True).
overwrite: replace a same-named footprint already in dest.
dry_run: resolve the selection and report it WITHOUT moving
anything. Worth doing whenever name_regex is used: the
pattern is applied with search, not a full match, so a
short pattern selects far more than intended, and the
default is to delete them from the source afterwards.
Returns: {"success": true, "moved": N, "skipped": N, "failed": N}, or in dry-run {"dry_run", "resolved", "count", ...} with nothing sent to the bridge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | No | ||
| dry_run | No | ||
| overwrite | No | ||
| name_regex | No | ||
| dest_pcblib | Yes | ||
| source_pcblib | Yes | ||
| delete_from_source | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||