← Commit history
CHANGELOG.md+9
@@ -1,5 +1,14 @@ # Changelog +## 0.2.122++- **`altium_add_dimensions {replace: true}`** removes the footprint's existing dimensions first, so a rerun after a re-import no longer stacks duplicates. With `dimensions: []` it only removes them.+- **The reply says which `format` keys took.**+  - `format.applied` lists the keys read and their values, `defaults` the rest, and `ignored` any key it does not know (`textHeight` instead of `textHeightMm`).+  - Each dimension carries `style`: the text height, text line width, line width, arrow size, arrow length and extension offset Altium holds after the reopen.+  - Format values may also be numeric strings (`"0.15"`), which were skipped before.+- Tested on Altium Designer 26.11.1 with an 0603: arrows of 0.15 x 0.25 mm, 0.05 mm lines and 0.3 mm text read back exactly after the reopen. `replace` left one dimension where there were two, and `replace` with an empty list left none, with the footprint unchanged.+ ## 0.2.121  - **New verb `altium_add_dimensions`: anchored dimensions on a library footprint** (#43). True Altium linear dimensions whose ends are bound to the footprint's pads (their centres) and its assembly-outline corners, so they follow them when they move: pitch, row span, body size.
bridge-rs/src/dimensions.rs+45−6
@@ -129,13 +129,32 @@ pub fn record(index: usize, mech: i64, horizontal: bool, at_mil: f64, a: &Anchor #[derive(Clone, Debug)] pub struct Format { pub text_height: f64, pub text_line: f64, pub text_gap: f64, pub line: f64, pub arrow_size: f64, pub arrow_length: f64, pub extension_offset: f64, pub units: String, pub precision: Option<i64>, pub font: Option<String> } +/// The `format` keys this verb reads; anything else is reported as ignored.+pub const FORMAT_KEYS: &[&str] = &["textHeightMm", "textLineWidthMm", "textGapMm", "lineWidthMm", "arrowSizeMm", "arrowLengthMm", "extensionOffsetMm", "units", "precision", "font"];++/// What the call's `format` set: each key read with the value used (mm), the defaults that filled the rest, and the keys+/// it did not know (AI Flow passed textHeight and could not tell it was not read, 2026-12-02).+pub fn format_echo(v: Option<&Value>, f: &Format) -> Value {+    let given: Vec<String> = v.and_then(|o| o.as_object()).map(|o| o.keys().cloned().collect()).unwrap_or_default();+    let r4 = |x: f64| (x / MIL_PER_MM * 10000.0).round() / 10000.0;+    let all = json!({"textHeightMm": r4(f.text_height), "textLineWidthMm": r4(f.text_line), "textGapMm": r4(f.text_gap), "lineWidthMm": r4(f.line),+        "arrowSizeMm": r4(f.arrow_size), "arrowLengthMm": r4(f.arrow_length), "extensionOffsetMm": r4(f.extension_offset), "units": f.units, "precision": f.precision, "font": f.font});+    let mut applied = Map::new();+    let mut defaults = Map::new();+    for k in FORMAT_KEYS { if given.iter().any(|g| g == k) { applied.insert(k.to_string(), all[*k].clone()); } else { defaults.insert(k.to_string(), all[*k].clone()); } }+    let ignored: Vec<String> = given.into_iter().filter(|g| !FORMAT_KEYS.contains(&g.as_str())).collect();+    json!({"applied": applied, "defaults": defaults, "ignored": ignored, "keys": FORMAT_KEYS})+}+ pub fn format_of(v: Option<&Value>) -> Format {-    let mm = |k: &str, d: f64| v.and_then(|o| o.get(k)).and_then(|x| x.as_f64()).map(|x| x * MIL_PER_MM).unwrap_or(d);+    // a number or a numeric string ("0.15"): a string value was skipped without a word (AI Flow, 2026-12-02)+    let num = |x: &Value| x.as_f64().or_else(|| x.as_str().and_then(|s| s.trim().trim_end_matches("mm").trim().parse().ok()));+    let mm = |k: &str, d: f64| v.and_then(|o| o.get(k)).and_then(num).map(|x| x * MIL_PER_MM).unwrap_or(d);     Format {         text_height: mm("textHeightMm", 40.0), text_line: mm("textLineWidthMm", 4.0), text_gap: mm("textGapMm", 8.0), line: mm("lineWidthMm", 4.0),         arrow_size: mm("arrowSizeMm", 20.0), arrow_length: mm("arrowLengthMm", 40.0), extension_offset: mm("extensionOffsetMm", 8.0),         units: v.and_then(|o| o.get("units")).and_then(|x| x.as_str()).unwrap_or("auto").to_string(),-        precision: v.and_then(|o| o.get("precision")).and_then(|x| x.as_i64()),+        precision: v.and_then(|o| o.get("precision")).and_then(|x| x.as_i64().or_else(|| x.as_str().and_then(|s| s.trim().parse().ok()))),         font: v.and_then(|o| o.get("font")).and_then(|x| x.as_str()).map(str::to_string),     } }@@ -203,7 +222,10 @@ pub fn add_dimensions(args: &Value) -> Value {     let s = |k: &str| crate::support::s(args, k);     let Some(lib) = s("libraryPath").filter(|l| l.to_lowercase().ends_with(".pcblib")) else { return fail("bad_args", "libraryPath (.PcbLib) is required".into()) };     let Some(name) = s("footprint").or_else(|| s("name")) else { return fail("bad_args", "footprint is required".into()) };-    let Some(list) = args.get("dimensions").and_then(|v| v.as_array()).filter(|a| !a.is_empty()).cloned() else {+    // replace: true drops the footprint's existing dimensions first (a rerun after a re-import stacked duplicates,+    // AI Flow 2026-12-02); with an empty list it only removes them+    let replace = args.get("replace").and_then(|v| v.as_bool()).unwrap_or(false);+    let Some(list) = args.get("dimensions").and_then(|v| v.as_array()).filter(|a| replace || !a.is_empty()).cloned() else {         return fail("bad_args", "dimensions is required: [{a, b, dir: H|V, at}] (a, b: a pad number, a corner TL/TR/BR/BL, or {x, y}; at: the dimension line's y (H) or x (V), mm)".into());     };     for (i, d) in list.iter().enumerate() {@@ -222,7 +244,7 @@ pub fn add_dimensions(args: &Value) -> Value {     let safe: String = name.chars().map(|c| if c.is_ascii_alphanumeric() || c == '-' || c == '_' { c } else { '_' }).collect();     let work = dir.join(format!("{safe}.PcbDoc")).to_string_lossy().replace('/', "\\");     let dur = std::time::Duration::from_secs(120);-    let w = crate::agent::call("dim_work", &[("path", lib.replace('/', "\\")), ("name", name.clone()), ("work", work.clone()), ("lcode", code("dimensions")), ("fcode", code("fab"))], None, dur);+    let w = crate::agent::call("dim_work", &[("path", lib.replace('/', "\\")), ("name", name.clone()), ("work", work.clone()), ("lcode", code("dimensions")), ("fcode", code("fab")), ("replace", if replace { "1".into() } else { "0".into() })], None, dur);     let wd = match crate::sch::agent_data(&w) { Ok(d) => d, Err(e) => return e };     let text = match std::fs::read(&work) { Ok(b) => String::from_utf8_lossy(&b).to_string(), Err(e) => return fail("work_board_unreadable", format!("{work}: {e}")) };     let wb = parse_work(&text);@@ -244,7 +266,7 @@ pub fn add_dimensions(args: &Value) -> Value {             "anchors": [format!("{} {} (anchor {})", a.kind, a.prim, a.anchor), format!("{} {} (anchor {})", b.kind, b.prim, b.anchor)], "expect": d.get("expect"), "toleranceMm": d.get("toleranceMm").and_then(|v| v.as_f64()).unwrap_or(0.01)}));     }     if args.get("dryRun").and_then(|v| v.as_bool()) == Some(true) {-        return json!({"success": true, "dryRun": true, "dimensions": planned, "layer": dim_layer, "outlineLayer": fab_layer, "_hint": "Nothing changed. Call again without dryRun to add them."});+        return json!({"success": true, "dryRun": true, "format": format_echo(args.get("format"), &fmt), "dimensions": planned, "layer": dim_layer, "outlineLayer": fab_layer, "_hint": "Nothing changed. Call again without dryRun to add them."});     }     let off = wd["offsetMil"].as_array().map(|a| (a.first().and_then(|v| v.as_f64()).unwrap_or(0.0), a.get(1).and_then(|v| v.as_f64()).unwrap_or(0.0))).unwrap_or((0.0, 0.0));     let (text, rebound) = rebind(&text, &wb, off);@@ -261,6 +283,10 @@ pub fn add_dimensions(args: &Value) -> Value {     let rd = match crate::sch::agent_data(&r) { Ok(d) => d, Err(e) => return e };     let k = rd["k"].as_f64().unwrap_or(10_000_000.0) / 25.4;     let found: Vec<(bool, f64)> = rd["dims"].as_array().cloned().unwrap_or_default().iter().map(|d| (d[0].as_bool().unwrap_or(false), d[1].as_f64().unwrap_or(0.0) / k)).collect();+    let styles: Vec<Value> = rd["style"].as_array().cloned().unwrap_or_default().iter().map(|s| {+        let mm = |i: usize| (s[i].as_f64().unwrap_or(0.0) / k * 10000.0).round() / 10000.0;+        json!({"textHeightMm": mm(0), "textLineWidthMm": mm(1), "lineWidthMm": mm(2), "arrowSizeMm": mm(3), "arrowLengthMm": mm(4), "extensionOffsetMm": mm(5)})+    }).collect();     let mech_of = |id: i64| if (57..=72).contains(&id) { id - 56 } else if id > 67_108_864 { id - 67_108_864 } else { 0 };     let layers: Vec<i64> = rd["dims"].as_array().cloned().unwrap_or_default().iter().map(|d| mech_of(d[2].as_i64().unwrap_or(0))).collect();     let mut used = vec![false; found.len()];@@ -276,6 +302,7 @@ pub fn add_dimensions(args: &Value) -> Value {                 q["valueMm"] = json!((v * 10000.0).round() / 10000.0);                 q["validAfterReopen"] = json!(valid);                 q["onLayer"] = json!(format!("Mechanical {}", layers[i]));+                if let Some(st) = styles.get(i) { q["style"] = st.clone(); }                 if !valid { ok = false; }                 if layers[i] != dim_mech { ok = false; q["error"] = json!(format!("landed on Mechanical {}, not {}", layers[i], dim_mech)); }                 if let Some(e) = p["expect"].as_f64() {@@ -290,7 +317,7 @@ pub fn add_dimensions(args: &Value) -> Value {     }     let mismatch = out.iter().any(|d| d["check"] == "MISMATCH");     json!({"success": ok, "errorCode": if ok { Value::Null } else { json!("not_anchored") }, "footprint": name, "library": lib, "layer": dim_layer, "outlineLayer": fab_layer,-        "dimensions": out, "allDimensions": found.len(), "rebuilt": {"moved": ad["moved"], "bodies": ad["bodies"], "existingDimensions": wb.dims, "referencesRebound": rebound}, "anyMismatch": mismatch, "saved": true,+        "dimensions": out, "allDimensions": found.len(), "format": format_echo(args.get("format"), &fmt), "rebuilt": {"moved": ad["moved"], "bodies": ad["bodies"], "existingDimensions": wb.dims, "referencesRebound": rebound, "replaced": replace}, "anyMismatch": mismatch, "saved": true,         "_hint": if ok { "Each dimension is bound to its pads or corners (validAfterReopen: read back after the library was saved, closed and reopened) and follows them when they move. check compares the measured length with expect." }             else { "A dimension did not validate after the reopen: its anchor may be a corner shared by a chamfer, or a pad Altium could not rebind. Read the footprint (altium_read_footprint) and call again; a chamfered outline needs fabOutline: edges." }}) }@@ -338,6 +365,18 @@ mod tests {         assert!(out2.lines().last().unwrap().contains("|REFERENCE0POINTX=-106.2992mil|"));     } +    #[test]+    fn the_format_echo_names_what_was_read() {+        let v = json!({"textHeightMm": 0.3, "textHeight": 0.3, "arrowSizeMm": 0.2});+        let e = format_echo(Some(&v), &format_of(Some(&v)));+        assert_eq!(e["applied"]["textHeightMm"], json!(0.3));+        assert_eq!(e["applied"]["arrowSizeMm"], json!(0.2));+        assert_eq!(e["ignored"], json!(["textHeight"]));+        let s = format_of(Some(&json!({"arrowSizeMm": "0.15", "lineWidthMm": "0.05mm"})));+        assert!((s.arrow_size / MIL_PER_MM - 0.15).abs() < 1e-9 && (s.line / MIL_PER_MM - 0.05).abs() < 1e-9, "numeric strings are read");+        assert!(e["defaults"].get("lineWidthMm").is_some() && e["defaults"].get("arrowSizeMm").is_none());+    }+     #[test]     fn units_follow_the_house_rule() {         assert_eq!(units_for(50.0, "auto", None), ("Mils", 0));
bridge-rs/src/main.rs+1−1
@@ -91,7 +91,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.121";+pub const BRIDGE_VERSION: &str = "0.2.122";  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());
bridge-rs/src/verbs.rs+2−2
@@ -156,8 +156,8 @@ fn describe() -> Value {             &["An encrypted model ($CDNENCSTART, as many PSpice packages are) is refused: only PSpice runs it.", "A vendor file's uncommented title line is dropped from the clean copy (SPICE reads a first line as a title).", "generic covers resistors, capacitors and inductors; switches and other passives are not attached.", "A generic part with no Value parameter cannot netlist: give it one.", "A MOSFET symbol with three pins ties the body to the source."],             json!({"libraryPath": "C:/lib/Diodes.SchLib", "symbolName": "1N4148WS", "modelPath": "C:/vendor/1N4148WS.lib"})),         verb_doc("add_dimensions", "Put anchored linear dimensions on a library footprint: true Altium dimensions whose ends are bound to the footprint's pads and assembly-outline corners and follow them when they move (pitch, row span, body size, hole positions). Checked after the library is saved and reopened, and against the datasheet's value when given.",-            json!({"libraryPath": "the .PcbLib (required)", "footprint": "the footprint (required)", "dimensions": "[{a, b, dir: H (along x) | V (along y), at: the dimension line's y (H) or x (V) in mm from the origin, expect?: the datasheet's value in mm, toleranceMm?: default 0.01}] (required). a and b: a pad number (its centre), an assembly-outline corner TL, TR, BR, BL (a footprint made with fabOutline: edges has one), or {x, y} in mm where an outline line ends", "format": "{textHeightMm, textLineWidthMm, lineWidthMm, arrowSizeMm, arrowLengthMm, extensionOffsetMm, units: auto (whole mils when a multiple of 5 mil, else mm) | mm | mil, precision, font (a TrueType font name)}", "layerMap": "{dimensions: DimensionsTop, fab: AssemblyTop} optional: the dimensions' layer and the outline's; else the library's or your map, else Mechanical 13", "dryRun": "bool: resolve the anchors and the texts, change nothing"}),-            json!({"dimensions": "[{a, b, dir, lengthMm, text, anchors, valueMm, validAfterReopen, check: MATCH | MISMATCH (with expect), deltaMm}]", "layer": "the dimensions' layer", "outlineLayer": "where corners were looked for", "allDimensions": "int: dimensions on the footprint now", "rebuilt": "{moved, bodies}", "anyMismatch": "bool", "saved": "true: the library is saved"}), 300,+            json!({"libraryPath": "the .PcbLib (required)", "footprint": "the footprint (required)", "dimensions": "[{a, b, dir: H (along x) | V (along y), at: the dimension line's y (H) or x (V) in mm from the origin, expect?: the datasheet's value in mm, toleranceMm?: default 0.01}] (required). a and b: a pad number (its centre), an assembly-outline corner TL, TR, BR, BL (a footprint made with fabOutline: edges has one), or {x, y} in mm where an outline line ends", "format": "{textHeightMm, textLineWidthMm, textGapMm, lineWidthMm (dimension, arrow and extension lines), arrowSizeMm, arrowLengthMm, extensionOffsetMm, units: auto (whole mils when a multiple of 5 mil, else mm) | mm | mil, precision, font (a TrueType font name)}; the reply's format says which keys were read", "layerMap": "{dimensions: DimensionsTop, fab: AssemblyTop} optional: the dimensions' layer and the outline's; else the library's or your map, else Mechanical 13", "replace": "bool, default false: remove the footprint's existing dimensions first (a rerun after a re-import stacks duplicates otherwise); with dimensions: [] it only removes them", "dryRun": "bool: resolve the anchors and the texts, change nothing"}),+            json!({"dimensions": "[{a, b, dir, lengthMm, text, anchors, valueMm, validAfterReopen, onLayer, style: {textHeightMm, textLineWidthMm, lineWidthMm, arrowSizeMm, arrowLengthMm, extensionOffsetMm} as Altium holds them after the reopen, check: MATCH | MISMATCH (with expect), deltaMm}]", "format": "{applied: the format keys read and their values (mm), defaults: the rest, ignored: keys not known, keys: every key read}", "layer": "the dimensions' layer", "outlineLayer": "where corners were looked for", "allDimensions": "int: dimensions on the footprint now", "rebuilt": "{moved, bodies}", "anyMismatch": "bool", "saved": "true: the library is saved"}), 300,             "Altium will not anchor a dimension a script makes, so the footprint is copied onto a work board saved as ASCII, the dimensions are written in bound to those primitives, Altium validates them, and the footprint is rebuilt from the work board's own instances (pads, tracks and dimensions together), then saved, closed and reopened to read the references back. The footprint keeps its name, description, height, 3D bodies and every primitive.",             &["footprint_from_land_pattern", "read_footprint", "layer_map", "check_silkscreen"],             &["A chamfered outline corner is not the end of a line: build the footprint with fabOutline: edges to dimension its corners.", "Boards that already use the footprint keep their copy: update them with swap_footprint.", "The footprint's primitives get new unique ids (it is rebuilt)."],
package.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "altium-bridge",-  "version": "0.2.121",+  "version": "0.2.122",   "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+2−2
@@ -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.121",+  "version": "0.2.122",   "hero": {     "type": "image",     "path": "screenshots/hero.png"@@ -159,4 +159,4 @@     "tools/symbol_modes.py",     "uninstall.sh"   ]-}\ No newline at end of file+}
skills/altium-libraries/SKILL.md+5
@@ -256,6 +256,11 @@ altium_check_silkscreen '{"libraryPath":"C:/lib/Parts.PcbLib","footprint":"SOIC8   reopened, and `validAfterReopen` is read back. The footprint keeps every primitive, its name, description, height and   3D bodies (compared primitive by primitive with a twin). A second call keeps the earlier dimensions and binds them   again. Boards that use the footprint keep their copy until `altium_swap_footprint`.+- `replace: true` (0.2.122) removes the footprint's existing dimensions first (`dimensions: []` only removes them): use it+  on a rerun, or the dimensions stack. The `format` keys are `textHeightMm`, `textLineWidthMm`, `textGapMm`,+  `lineWidthMm` (dimension, arrow and extension lines), `arrowSizeMm`, `arrowLengthMm`, `extensionOffsetMm`, `units`,+  `precision`, `font`; the reply's `format.ignored` names any other key, and each dimension's `style` is what Altium+  holds after the reopen. For an 0603: text 0.3, lines 0.05, arrows 0.15 x 0.25, extension offset 0.1. - **`altium_check_silkscreen`** measures, on the footprint as Altium holds it, the edge-to-edge clearance between every   overlay line, arc, text and fill and each pad's exposed copper: the pad grown by `maskExpansionMm`, else its own   manual expansion, else Altium's default rule (4 mil). Round, oval, rectangular and rounded-rectangle pads are exact;
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-0.2.121+0.2.122
src/agent/AdomAgent.pas.tmpl+29−1
@@ -12263,6 +12263,9 @@ Begin     Fp.GroupIterator_Destroy(GI);     { the footprint's own dimensions live on the library's board while it is shown }     ND := 0;+    { replace=1: the footprint's existing dimensions stay behind, and the rebuild drops them }+    If Param(Lines, 'replace') <> '1' Then+    Begin     BI := PLib.Board.BoardIterator_Create;     BI.AddFilter_ObjectSet(MkSet(eDimensionObject));     BI.AddFilter_IPCB_LayerSet(LayerSetUtils.AllLayers);@@ -12276,6 +12279,7 @@ Begin         P := BI.NextPCBObject;     End;     PLib.Board.BoardIterator_Destroy(BI);+    End;     PCBServer.PostProcess;     FreePath(Work);     Doc.SetFileName(Work);@@ -12307,6 +12311,30 @@ Begin     Result := '[' + Result + ']'; End; +{ The look of a footprint's dimensions as Altium holds them, in the order FpDimsJson reads them: [textHeight,+  textLineWidth, lineWidth, arrowSize, arrowLength, extensionOffset] in internal units. altium_add_dimensions reports+  them so a caller sees which format values took. }+Function FpDimStyleJson(PLib : IPCB_Library) : String;+Var+    BI : IPCB_BoardIterator;+    D : IPCB_Primitive;+Begin+    Result := '';+    BI := PLib.Board.BoardIterator_Create;+    BI.AddFilter_ObjectSet(MkSet(eDimensionObject));+    BI.AddFilter_IPCB_LayerSet(LayerSetUtils.AllLayers);+    D := BI.FirstPCBObject;+    While D <> Nil Do+    Begin+        If Result <> '' Then Result := Result + ',';+        Result := Result + '[' + IntToStr(D.TextHeight) + ',' + IntToStr(D.TextLineWidth) + ',' + IntToStr(D.LineWidth) + ',' ++            IntToStr(D.ArrowSize) + ',' + IntToStr(D.ArrowLength) + ',' + IntToStr(D.ExtensionOffset) + ']';+        D := BI.NextPCBObject;+    End;+    PLib.Board.BoardIterator_Destroy(BI);+    Result := '[' + Result + ']';+End;+ { dim_apply: path=, name=, work= (the ASCII board with the dimensions written in). The footprint is rebuilt from the work   board's instances: a new footprint is registered and shown, every top-level object of the work board (a dimension's   own lines and texts travel inside it) is moved onto the library's board, the old footprint's 3D bodies are copied@@ -12404,7 +12432,7 @@ Begin     Fp := FindFp(PLib, Param(Lines, 'name'));     If Fp = Nil Then Begin Result := '{' + JRaw('ok','false') + ',' + JStr('errorCode','footprint_not_found') + ',' + JStr('error','no footprint ' + Param(Lines, 'name')) + '}'; Exit; End;     PLib.CurrentComponent := Fp; PLib.Board.ViewManager_FullUpdate;-    Result := '{' + JRaw('ok','true') + ',' + JRaw('k', IntToStr(MilsToCoord(1000))) + ',' + JRaw('dims', FpDimsJson(PLib)) + '}';+    Result := '{' + JRaw('ok','true') + ',' + JRaw('k', IntToStr(MilsToCoord(1000))) + ',' + JRaw('dims', FpDimsJson(PLib)) + ',' + JRaw('style', FpDimStyleJson(PLib)) + '}'; End;  Function Dispatch(Cmd : String; Lines : TStringList; Payload : String) : String;
src/bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "altium",   "displayName": "Altium Designer",-  "version": "0.2.121",+  "version": "0.2.122",   "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",