lib_reload_library
Reload a PCB library to refresh cached text bounding boxes after edits, so subsequent reads return current extents. Save changes first; reloading does not save.
Instructions
Close and reopen a PcbLib so Altium rebuilds its caches from disk.
IPCB_Text.BoundingRectangle is populated when the document loads and
is NOT refreshed when a text moves or is resized, not even by
GraphicallyInvalidate. Anything that reads a text's extent after
writing to it therefore gets the OLD box. Reload between a write and the
next read.
SAVE FIRST: this does not save, and closing a dirty document loses the
edits or raises a prompt. lib_fix_designators already does this.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"library_path": "<library_path>"
},
"name": "lib_reload_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||