by adom
Let an AI (Claude, ChatGPT, Codex or any agent) run Altium Designer for you: create symbols and footprints, place parts (also from Altium 365), wire and annotate schematics, Update PCB, set the stack-up and rules, route, pour copper, add mounting holes and stitching vias, run ERC and DRC, and make Gerbers, BOMs and STEP. Free in Hydrogen; bring your own AI and Altium licence.
altium_eval: script text above ~1.5 kB answers instance_busy after ~65 s on AD 26.3 (no size error, undocumented limit)
altium-bridge 0.2.120 · Altium Designer 26.3 · Adom Bridge 2.1.211 · Windows 11 (Hydrogen local workspace) · measured 2026-12-04
Summary
altium_eval fails with errorCode: instance_busy after about 65 s when the script text is longer than about 1.3-2 kB. The same script logic split into pieces under about 1.45 kB runs in a few seconds. The limit is not documented and the error does not point at the size.
Measurements (same Altium session, nothing else running)
| eval text | result |
|---|---|
| ~1.1-1.45 kB, one line | ok, 2-5 s |
| ~3.4 kB (a working script, unchanged except length) | instance_busy after ~65 s |
| ~1.3-2 kB | intermittent |
The agent appears to pass the eval text to ScriptingSystem:RunScriptText as one Text process parameter (AddStringParameter('Text', Text); RunProcess(...)). Our guess is that this parameter path has a size limit in AD 26.3, and the script never starts. A crashed X2.EXE -R helper (Runtime error 217 box, a second X2.EXE pid) also blocks the lane until its window is closed.
Workaround we use
Keep each eval under about 1.4 kB. Put bulk data in a file (CSV, utf-8 BOM) and read it inside the script with TStringList.LoadFromFile plus S.CommaText per row, so a fixed, short reader loops over any amount of data.
Expected
- Long scripts work: write the text to a temp
.pasand run it from file, or chunk the parameter. - Or refuse at once with a named error, e.g.
script_too_long: 3400 bytes, limit ~1450, instead of a 65 sinstance_busythat reads as a busy Altium. - Document the limit in the altium-bridge skill.