Altium - the Altium Bridge
Public Made by Adomby adom
Adom Bridge for Altium Designer: a resident DelphiScript agent gives the AI eval, the 1,100-command process launcher, all 8 EDA surfaces with screenshots, compile/ERC, DRC, OutJob outputs, native SchLib/PcbLib authoring with STEP 3D bodies, and dialog handling by PID.
Add altium_uninstall_library (inverse of install_library); no way to remove an installed library today
Ask
Add altium_uninstall_library {libraryPath | libraryName}, the inverse of altium_install_library / altium_install_library_bundle. Today a library can be installed but not removed, so the only ways out are clicking through Components › File-based Libraries Preferences or hand-running DelphiScript through altium_eval.
Why it came up
Preparing a from-scratch demo on ConfRoomROG (Altium Designer Develop, bridge 0.2.40): an earlier run had installed Adom_ToF (SchLib + PcbLib) and it had to go so the new run would build its library fresh rather than reuse it on camera. There was no verb, and deleting the files is worse: the contract says so itself (altium_install_library pitfall: "moving or deleting it later leaves a dead entry").
Suggested contract
- input:
libraryPath(exact registered path) orlibraryName(matches every installed library whose file stem equals it, i.e. bothX.SchLibandX.PcbLib),dryRunbool. - output:
removed: [path],remaining: int,notInstalled: bool. - implementation:
IntegratedLibraryManager.UninstallLibrary(path)after matching againstInstalledLibraryPath(i)fori < InstalledLibraryCount. Library files are never touched. - behaviour: background like
install_library(no foreground steal, see #12). AnswernotInstalled:truerather than failing when nothing matches, so a cleanup script can call it twice without erroring. - companion:
altium_list_installed_libraries(read-only) so a caller can check before and after without a screenshot.
Also worth covering
altium_install_library_bundle receipts could record the registered paths, so an uninstall can remove exactly what a bundle added.