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.
schematic_data: answers ok with 0 components when the current document is a SchLib (should refuse); filePath is ignored
What I ran (bridge 0.2.45 dev build, Altium Designer 26.11.1, DESKTOP-BAR6S0F). The focused document was a .SchLib (left current by an earlier altium_show_symbol):
altium_schematic_data {"filePath":"C:/Users/olive/Documents/AdomAiFlow/symtest/SymTest.SchDoc"}
Expected: that sheet's 31 components. Failing that, a refusal: the verb doc says it "Needs a .SchDoc current; 'no current schematic' -> altium_open_document / altium_show_schematic."
What happened:
{"components": [], "count": 0, "document": "C:/Users/olive/Documents/AdomAiFlow/symtest/library/SymTest.SchLib", "ok": true}
The read accepted a schematic LIBRARY as the current sheet and answered ok with zero parts. A caller that skips document concludes the sheet is empty. filePath was ignored silently, since the verb has no such argument. After altium_show_schematic {filePath}, the same call returned all 31 components.
Suggested fix:
- Refuse with
errorCode: no_current_schematicwhen the current document's kind is not SCH (SCHLIBincluded). - Accept
filePath, asread_boardandshow_schematicdo: open or activate that sheet first, then read it.