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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||