lib_copy_footprint
Copy a footprint into a PcbLib, optionally renaming it and choosing source/destination libraries, with overwrite for existing names.
Instructions
Copy one footprint (all pads/primitives) into a PcbLib, optionally renaming.
Footprint analog of lib_copy_component: full-copies the footprint with no delete. source_library defaults to the focused PcbLib; dest_library defaults to the source. A same-library copy requires a different new_name. Errors if new_name already exists in dest unless overwrite.
Args: source_name: the footprint to copy. new_name: name for the copy (default source_name). source_library: source .PcbLib path (default the focused lib). dest_library: destination .PcbLib path (default source). overwrite: replace a same-named footprint already in dest.
Returns: {"success": true, "source": "...", "new_name": "...", "same_library": bool}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | No | ||
| overwrite | No | ||
| source_name | Yes | ||
| dest_library | No | ||
| source_library | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||