lib_rename_footprint
Rename a footprint in an EasyEDA Pro PCB library (.PcbLib) by specifying its current and new name. The tool validates that the old name exists and the new one is unique before applying the change.
Instructions
Rename a footprint in a PCB library (.PcbLib).
Renames the footprint whose name is footprint_name to new_name. Errors if footprint_name is not found or new_name already exists in the library.
MARKS the .PcbLib dirty; it does not write. Call app_save_all to
flush, and check what it reports actually reached disk.
Args: footprint_name: the current footprint name. new_name: the new footprint name. library_path: optional .PcbLib path; defaults to the focused lib.
Returns: {"success": true, "footprint": "...", "new_name": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | ||
| library_path | No | ||
| footprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||