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.
← Commit history
0.2.80: version stamps and CHANGELOG; batteries on the final build: Develop 254/0/1, AD26 254/0/1
6 files changed
+46−46
CHANGELOG.md+41−41@@ -1,50 +1,50 @@ # Changelog -## 0.2.80 (unreleased)+## 0.2.80 -- **Altium covers the whole EDA Bridge Standard: 236 of 236 verbs.** The last four come from the standard's shared engine- (adom-eda-checks 0.10.3, standard 0.13.3, vendored as published): `plan_route`, `place_decoupling`, `plan_fanout` and- `estimate_cost`. 255 verbs. Engine 0.10.0 checks a route's through vias on every copper layer, takes the strictest- board-wide copper clearance (scoped rules left out), and names the pours a route crosses (`crossesPours`;- `avoidPours` keeps out of all of them or of the nets listed, `pourCost` makes them dearer instead).+Every verb of the EDA Bridge Standard: 236 of 236, 255 verbs in all. The standard's shared engine is adom-eda-checks+0.10.3 (standard 0.13.3), vendored as published; Altium's issues and pull requests on the standard are #20 to #22 and PRs+#2 to #4.++- **`altium_plan_route`: a path for one net between two pads** (#21). An A* search on a grid over the copper layers you+ allow (inner layers too), with vias between them. Every step keeps the strictest board-wide copper clearance from+ other nets' copper (pads by their real outline), and a through via is checked on every copper layer. The track and+ via take the board's own Width and Routing Via rules unless `widthMm`/`viaSizeMm` are given (`planner.widthFrom`,+ `viaFrom`): a 0.25 mm default broke a 10 mil Width rule (PR #4). It answers `routeNet`, altium_route_net's own+ arguments, and `apply:true` routes it, guarded by the revision it was planned on. Pours are not obstacles:+ `crossesPours` names the ones a route runs through, `avoidPours` keeps out of all of them or of the nets listed, and+ `pourCost` makes them dearer instead.+- **`altium_place_decoupling`: an IC's decoupling caps beside the power pins they serve** (#22). Each cap goes just+ outside the IC (`gapMm`, 0.3), its power pad facing the pin, sliding along the side when the spot is taken, and clear+ of the IC's fanout (`leaveFanout`). The default set leaves out a crystal's load caps and caps nearer another IC on the+ same supply (`leftOut` says why); naming caps places them anyway. The plan comes checked by placement_check on the+ moved board; `apply:true` moves the caps, guarded by the revision. Live on the Bluetooth Sentinel: U4's six VBAT caps+ placed and moved, validation clean. - **`altium_plan_fanout`: a BGA's or a QFN/QFP's escape** (#22): the outer ring on the surface and a dogbone via (or via- in pad) for each inner ball, an outward stub per perimeter pad, a via grid in an exposed pad, as route_net calls, every- via and stub measured against other nets' pads (`conflicts`). `apply:true` routes the calls one after another, each- guarded by the revision the one before left, and refuses while a conflict is listed.+ in pad) for each inner ball, an outward stub per perimeter pad, an exposed pad's via grid. Pins already routed are+ skipped (`includeRouted` plans them), each via and stub is measured against other nets' pads, tracks, arcs and vias+ (`conflicts`), and the exposed-pad grid steps round holes already there. `apply:true` routes every call as one undo+ step and refuses while a conflict is listed. Live on the Sentinel's U4: the PB6/PB7 stubs and 8 grid vias, then a+ repour and DRC, 0 violations. - **`altium_estimate_cost`: the numbers a fab quote needs** (#22): size, copper layers, thickness, smallest track, gap- and drill, holes, parts and joints. Prices only from a record the caller passes (`prices`, read from the fab's own page- with its date): no rates are built in, so none can go stale.+ and drill, holes, parts and joints. Prices only from a record the caller passes (`prices`, read from the fab's own+ page with its date): no rates are built in, so none can go stale.+- **`check_clearance` answers from the engine:** pads by their real outline (Altium's own measured bounding rectangles,+ so a rounded or turned pad read closer than it is), parts as pads plus 3D bodies.+- **`generate_body` is the engine's writer** (#20, PRs #2 and #3): this bridge's body3d moved into the engine, so Altium,+ KiCad and Fusion make the same body; the bridge writes the STEP file. The reply adds `bodies` (the body's box in the+ bodies companion's form), `writtenFrom` and `engine`; `pins` is the total pin count in every family (a BGA too), and+ D2/E2 draw a QFN or DFN's exposed pad when both are given. The marking font's D and B have a full left side and cut+ right corners: D read as "IO" ("ADOM" read "AIOM" on a QFN in Altium), and B looked like an 8. - **Pours come back whole, and a repour that does nothing is caught.** routing_state's `polygons` and pour_state's- outlines carried only each segment's start point, so the Bluetooth Sentinel's round GND pours read as 3 to 5 corners- (and the planners' `crossesPours`/`avoidPours` could not see them): arc segments are now split into chords. A hatched- pour (poured as tracks, not regions) read as unfilled; pour_state now counts its pieces (`hatchedPieces`). And- Altium's Repour All left those hatched pours untouched after new copper went in (17 DRC errors against two new- stubs): when it changes no pour, `altium_repour` rebuilds each polygon from the agent (`rebuiltInScript`), which- cleared all 17.-- **The checks that read 3D bodies read the board once.** `place_decoupling`, `placement_check` and `check_clearance`- read the board model and then the bodies, which read it again for the parts with no body: 74 s each time on the- Bluetooth Sentinel, so the check ran past the relay's limit. The bodies now take the board already read.--- **`altium_place_decoupling`: an IC's decoupling caps beside the power pins they serve, from the standard's shared- planner** (#22, standard 0.10.0, adom-eda-checks 0.7.0, vendored as published). Each cap goes just outside the IC- (gapMm, 0.3 by default), its power pad facing the pin and lined up with it, sliding along the side when the spot is- taken. The default set leaves out a crystal's load caps and caps nearer another IC on the same supply (`leftOut`- says why); naming caps places them anyway. The plan comes checked by placement_check on the moved board, and- `apply:true` moves the caps with move_parts, guarded by the revision it was planned on. `check_clearance` answers from the engine too: pads by their real outline (it measured bounding rectangles, so a rounded or turned pad read closer than it is), parts as pads plus 3D bodies.--- **`altium_plan_route`: a path for one net between two pads, from the standard's shared planner** (#21, standard 0.9.1,- adom-eda-checks 0.6.1, vendored as published). An A* search on a grid, over the copper layers you allow (any number,- inner layers too), with vias between them; every step keeps the board's clearance rule from other nets' copper, pads- measured by their real outline. It answers `routeNet`, altium_route_net's own arguments, and `apply:true` routes it- here, guarded by the revision it was planned on. The track and via take the board's own Width and Routing Via rules- unless widthMm / viaSizeMm are given (`planner.widthFrom`, `viaFrom`): 0.25 mm broke a 10 mil Width rule (#21, PR #4). Pours are not obstacles: repour after. --- **`generate_body` is the standard's engine writer now** (#20, standard 0.8.1, adom-eda-checks 0.5.1, vendored as- published): this bridge's body3d moved into the engine, so Altium, KiCad and Fusion make the same body. The bridge- writes the STEP file. The reply adds `bodies` (the body's box in the bodies companion's form), `writtenFrom` and- `engine`; `pins` is the total pin count in a BGA too (the smallest square grid), and D2/E2 draw a QFN or DFN's- exposed pad when both are given. The marking font's D and B have a full left side and cut right corners: D was a box- with a centre bar and read as "IO" ("ADOM" read "AIOM" on a QFN in Altium), and B looked like an 8.+ outlines carried only each segment's start point, so the Sentinel's round GND pours read as 3 to 5 corners (and the+ planners could not see them): arc segments are now split into chords. A hatched pour (poured as tracks, not regions)+ read as unfilled; pour_state now counts its pieces (`hatchedPieces`). Altium's Repour All left those hatched pours+ untouched after new copper went in (17 DRC errors against two new stubs): when it changes no pour, `altium_repour`+ rebuilds each polygon from the agent (`rebuiltInScript`), which cleared all 17.+- **The checks that read 3D bodies read the board once.** `place_decoupling`, `placement_check` and `check_clearance` read+ the board model and then the bodies, which read it again for the parts with no body: 74 s each+ time on the Sentinel, so a check ran past the relay's limit. The bodies now take the board already read. ## 0.2.79
bridge-rs/src/main.rs+1−1@@ -67,7 +67,7 @@ use tiny_http::{Header, Method, Response, Server}; /// Attached to every failed reply (see the /command handler). const REPORT_ISSUES: &str = "If this looks like an altium-bridge BUG (not a refusal you expected), report it: check for a duplicate with `adom-wiki issue list adom/altium-bridge`, then `adom-wiki issue create adom/altium-bridge --title \"<verb>: <one-line symptom>\" --category bug-report --body \"<what you ran, what you expected, what happened, the VERBATIM response JSON (and errorShot if present), bridgeVersion, the Altium version from altium_status, the OS>\"`. A relay, routing, toast or lifecycle problem belongs on adom/adom-bridge instead. Reports from real machines are how this bridge gets correct: three different Altium builds behaved three different ways in one weekend."; -pub const BRIDGE_VERSION: &str = "0.2.79";+pub const BRIDGE_VERSION: &str = "0.2.80"; fn json_response(status: u16, body: &serde_json::Value) -> Response<std::io::Cursor<Vec<u8>>> { let data = serde_json::to_vec(body).unwrap_or_else(|_| b"{}".to_vec());
package.json+1−1@@ -1,6 +1,6 @@ { "slug": "altium-bridge",- "version": "0.2.79",+ "version": "0.2.80", "type": "app", "description": "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.", "tags": [
page.json+1−1@@ -4,7 +4,7 @@ "type": "app", "title": "Altium Bridge: AI for Altium Designer", "brief": "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.",- "version": "0.2.79",+ "version": "0.2.80", "hero": { "type": "image", "path": "screenshots/hero.png"
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-0.2.79+0.2.80
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "altium", "displayName": "Altium Designer",- "version": "0.2.79",+ "version": "0.2.80", "description": "Drive Altium Designer from Adom: a resident DelphiScript agent (eval + the 1,100-command process launcher), the X2 -R command line, UIA over the VCL shell, dialogs by PID, screenshots of every Altium window, and Altium 365.", "homepage": "https://wiki.adom.inc/adom/altium-bridge", "docs": "https://wiki.adom.inc/adom/altium-bridge",