← Commit history

0.2.76 source (not yet released, needs signing): the EDA Bridge Standard's schematic wiring, sheet, board-edit and export verbs (31 new), parts that flip, 3D bodies, five checks by the shared engine with 13 fabs' limits, planes named by stack place; battery entries for every new verb (232 verbs)

Colby Knox ·8549687f56 · ·parent d55c6a2
9 files changed +133−9
CHANGELOG.md+3
@@ -45,6 +45,9 @@ - **Copper layers are named by their place in the stack**, an internal plane included (`In<n>.Cu`, kind plane), the   standard's rule: `routing_state`, `layer_stack` (each layer now carries `layer` and `layerId`), every layer lookup   and the copper checks agree. A board without planes reads exactly as before.+- `altium_export_odb` and `altium_export_ipc2581` (new, the standard's batch 2): one fab format through Altium's own+  output (the project's manufacturing OutJob), the whole ODB++ tree with its archives first, or the IPC-2581 XML+  (revision B, Altium's template). Options Altium's template fixes are reported under optionsNotApplied. - `altium_bodies` (new): every part's 3D bodies as boxes in mm, the standard's bodies model (`{ref, side, x0, y0,   x1, y1, z0, z1}`), plus the parts with no body. The data `height_check` already read, now its own verb, so the   shared checks engine and other tools can read it.
README.md+6−4
@@ -15,7 +15,7 @@ normal session. Ask in plain words and it: - makes the outputs: Gerbers, NC drill, pick and place, BOMs grouped by MPN (JLCPCB, Mouser, DigiKey files),   schematic PDF and STEP, checking that the outline and every copper layer reached the Gerbers -230 commands, tested on Altium Designer 26.11 and Altium Designer Develop. It runs in **Hydrogen**, Adom's free+232 commands, tested on Altium Designer 26.11 and Altium Designer Develop. It runs in **Hydrogen**, Adom's free desktop app, through Adom Bridge. You bring your own AI subscription and your own Altium licence.  ::youtube{id="dFecpcIzdSE" title="An AI designs a 12 V to 5 V buck converter in Altium Designer"}@@ -29,7 +29,7 @@ and the verb prefix `altium_`.  ## What it can do -Tested on Altium Designer 26.11.1 and Altium Designer Develop. 230 verbs; each row names the ones+Tested on Altium Designer 26.11.1 and Altium Designer Develop. 232 verbs; each row names the ones behind it (prefix `altium_`).  | Area | What the AI can do | Verbs |@@ -70,7 +70,7 @@ This bridge is the reference for the [EDA Bridge Standard](https://wiki.adom.inc  Altium Designer is the user's own **host app**. The bridge finds an installed Altium (`%ProgramFiles%\Altium\AD*\X2.EXE`, Designer or Develop), starts it in the background, runs a small-**DelphiScript agent** inside it, and gives the AI 230 `altium_*` verbs.+**DelphiScript agent** inside it, and gives the AI 232 `altium_*` verbs.  - **Page and docs:** https://wiki.adom.inc/adom/altium-bridge - **Bridge SDK:** https://wiki.adom.inc/adom/adom-bridge-sdk@@ -170,7 +170,7 @@ way to read it). A stopped engine is restarted with `altium_agent_recover`.  <!-- verbs:start (tools/readme_verbs.py writes this list) --> -All 230 verbs, by area (prefix `altium_`). `altium_describe` returns the live catalog with every input, output, hint and example.+All 232 verbs, by area (prefix `altium_`). `altium_describe` returns the live catalog with every input, output, hint and example.  ### Running Altium: launch, close, health, dialogs @@ -245,6 +245,8 @@ All 230 verbs, by area (prefix `altium_`). `altium_describe` returns the live ca - `altium_routing_state`: The WHOLE current board as data, in mm: tracks, arcs, vias, pads (with owner and net), components (ref, x, y, rotation, side), polygon pours, the outline, the unrouted (ratsnest) count, and a revision hash. - `altium_route_net`: Route one net as tracks, segment by segment; a waypoint on another layer drops a via there. - `altium_move_parts`: Move, rotate and flip placed components (side top or bottom; flip:true turns a part over); each part is read back to 0.001 mm, the exact rotation and its side.+- `altium_export_odb`: Export the board as ODB++ (copper, drill, stack-up, netlist and parts in one archive) through the tool's own exporter.+- `altium_export_ipc2581`: Export the board as IPC-2581: one XML file with copper, drill, stack-up, netlist and BOM, through the tool's own exporter. - `altium_remove_parts`: Remove placed parts from the board by designator, as one undo step. - `altium_edit_parts`: Edit placed parts: value, designator, any field (add, change, remove), do-not-populate, exclusion from the BOM or position files, mounting type and the lock. - `altium_align_parts`: Line parts up on a common left, right, top, bottom or centre line, or space them evenly, by courtyard box or by anchor point.
bridge-rs/src/manufacturing.rs+55
@@ -304,3 +304,58 @@ fn walk_names(dir: &std::path::Path) -> Vec<String> {     }     out }++/// The project beside a board that lists it (Altium's outputs run for a project's documents).+fn project_of(pcb: &str) -> Option<String> {+    let dir = std::path::Path::new(pcb).parent()?;+    let name = std::path::Path::new(pcb).file_name()?.to_string_lossy().to_lowercase();+    std::fs::read_dir(dir).ok()?.filter_map(|e| e.ok()).map(|e| e.path())+        .filter(|p| p.extension().map(|x| x.eq_ignore_ascii_case("prjpcb")).unwrap_or(false))+        .find(|p| std::fs::read_to_string(p).map(|t| t.lines().any(|l| l.to_lowercase().starts_with("documentpath=") && l.to_lowercase().ends_with(&name))).unwrap_or(false))+        .map(|p| p.to_string_lossy().to_string())+}++/// altium_export_odb / altium_export_ipc2581 {filePath?, outputDir?}: one fab format through Altium's own output+/// (the project's manufacturing OutJob with that format), its files copied to outputDir when one is given.+pub fn export_format(args: &Value, format: &str) -> Value {+    if let Some(g) = crate::support::need_licensed() { return g; }+    let pcb = match crate::support::s(args, "filePath") {+        Some(p) => p,+        None => { let st = crate::routing::routing_state(&json!({})); match st["file"].as_str() { Some(f) if !f.is_empty() => f.to_string(), _ => return st } }+    };+    let Some(prj) = project_of(&pcb) else {+        return json!({"success": false, "errorCode": "no_project", "error": format!("{pcb} is in no project beside it: Altium's outputs run for a project's documents"),+            "_hint": "Add the board to a .PrjPcb in its folder (altium_build_schematic makes one), then run this again."});+    };+    let mut ignored = Vec::new();+    // what Altium's template writes: mm, ODB++ zipped and tarred, IPC-2581 revision B uncompressed+    for (k, d) in [("units", "mm"), ("compression", "zip"), ("version", "B"), ("compress", "false")] {+        if let Some(v) = args.get(k) { if v.to_string().trim_matches('"') != d { ignored.push(k); } }+    }+    let r = export_manufacturing(&json!({"projectPath": prj, "pcbPath": pcb, "formats": [format], "silkPrep": false, "addOutline": false, "timeout": args.get("timeout").cloned().unwrap_or(json!(600))}));+    let out_dir = r["outputDir"].as_str().unwrap_or("").to_string();+    // every file of the format's own folder (ODB++ writes a tree), archives first+    let key = if format == "odb" { "odb" } else { "2581" };+    let mut names: Vec<String> = walk_names(std::path::Path::new(&out_dir)).into_iter()+        .filter(|n| n.split(['\\', '/']).next().map(|top| top.to_lowercase().contains(key)).unwrap_or(false) || (key == "2581" && n.to_lowercase().ends_with(".cvg"))).collect();+    names.sort_by_key(|n| { let l = n.to_lowercase(); (!(l.ends_with(".tgz") || l.ends_with(".zip") || l.ends_with(".cvg") || l.ends_with(".xml")), n.matches(['\\', '/']).count(), l) });+    if names.is_empty() {+        return json!({"success": false, "errorCode": "not_written", "error": format!("Altium's {format} output wrote no file"), "outjob": r.get("outjob"), "outputDir": out_dir, "reply": r.get("error")});+    }+    let mut files: Vec<String> = names.iter().map(|n| std::path::Path::new(&out_dir).join(n).to_string_lossy().to_string()).collect();+    let mut dest = out_dir.clone();+    if let Some(d) = crate::support::s(args, "outputDir") {+        let _ = std::fs::create_dir_all(&d);+        let mut copied = Vec::new();+        for (n, f) in names.iter().zip(files.iter()) {+            let to = std::path::Path::new(&d).join(n);+            if let Some(p) = to.parent() { let _ = std::fs::create_dir_all(p); }+            if std::fs::copy(f, &to).is_ok() { copied.push(to.to_string_lossy().to_string()); }+        }+        files = copied;+        dest = d;+    }+    json!({"success": true, "format": format, "files": files, "file": files.first(), "outputDir": dest, "project": prj,+        "optionsNotApplied": ignored, "windowEtiquette": "background",+        "_hint": format!("Written by Altium's own {format} output (its manufacturing template's settings; the other Gerber-set outputs ran beside it). Run altium_run_drc first: the file carries the board's errors with it.")})+}
bridge-rs/src/verbs.rs+12−2
@@ -22,7 +22,7 @@ pub const KNOWN: &[&str] = &[     "list_nets", "net_connections", "layers", "copper_layers", "read_rules",     "set_layer_visibility", "footprint_primitives", "schematic_data", "layer_stack", "net_classes", "diff_pairs", "board_outline", "set_track_width", "find_space", "selection", "check_orientation", "replicate_layout", "outjob_info", "find_symbol", "part_parameters",     // the live-board lane AI Flow drives-    "routing_state", "route_net", "move_parts", "remove_parts", "edit_parts", "align_parts", "set_layer_count", "copy_routing", "check_clearance", "remove_graphics", "place_vias", "board_features", "sch_sheet_symbol", "netlist", "silkscreen_prep", "net_lengths", "teardrops", "component_classes", "read_sheet_file", "fab_check", "panelize", "impedance", "current_capacity", "height_check", "bodies", "copper_balance", "return_path", "silk_designators", "via_fence", "assembly_check", "jlcpcb_order", "schematic_review", "pin_pad_check", "route_pair", "thermal_vias", "board_report", "placement_check", "auto_classes", "length_tune", "remove_items", "ripup_nets", "apply_pours", "pour_state", "remove_pours", "repour", "routing_drc", "build_board", "set_outline", "set_design_rules", "zoom_to", "add_rule", "build_schematic", "export_manufacturing", "select_net", "silk_state", "apply_silkscreen",+    "routing_state", "route_net", "move_parts", "export_odb", "export_ipc2581", "remove_parts", "edit_parts", "align_parts", "set_layer_count", "copy_routing", "check_clearance", "remove_graphics", "place_vias", "board_features", "sch_sheet_symbol", "netlist", "silkscreen_prep", "net_lengths", "teardrops", "component_classes", "read_sheet_file", "fab_check", "panelize", "impedance", "current_capacity", "height_check", "bodies", "copper_balance", "return_path", "silk_designators", "via_fence", "assembly_check", "jlcpcb_order", "schematic_review", "pin_pad_check", "route_pair", "thermal_vias", "board_report", "placement_check", "auto_classes", "length_tune", "remove_items", "ripup_nets", "apply_pours", "pour_state", "remove_pours", "repour", "routing_drc", "build_board", "set_outline", "set_design_rules", "zoom_to", "add_rule", "build_schematic", "export_manufacturing", "select_net", "silk_state", "apply_silkscreen",     // surfaces     "show_project", "show_schematic", "show_2d_board", "show_3d_board", "show_library",     "show_symbol", "show_footprint", "show_3d_chip", "list_library", "demo",@@ -727,7 +727,7 @@ fn describe() -> Value {         verb_doc("render_schematic", "Render a sheet to an image without opening a window, through the tool's own plotter, and keep visual baselines: baseline set stores the image, baseline compare reports the pixel drift, the changed region and a diff image.",             json!({"sheet": "path to the schematic sheet file (required)", "width": "int px, default 2000", "outputDir": "folder for the image (default beside the project)", "baseline": "set|compare", "threshold": "percent of pixels, default 0.5 (compare)", "drawingSheet": "bool, default true: include the frame and title block"}),             json!({"png": "path", "width": "int", "height": "int", "driftPercent": "number (compare)", "pass": "bool (compare)", "changedRegionMm": "[x1, y1, x2, y2] (compare)", "diffPng": "path: the changed pixels in red (compare)", "rendererChanged": "bool: the tool's plotter changed since the baseline"}), 400,-            "A sub-sheet renders with its real designators. compare renders at the baseline's width and passes when driftPercent <= threshold. show_* verbs open a window; this one does not.", &["export_pdf", "show_schematic"], &["Anti-aliasing differs between tool versions: rendererChanged:true means drift may not be a design change.", "A baseline is per sheet and per width; a paper size change reads as 100 percent drift.", "Altium prints the sheet to PDF (through its project when one beside it lists the sheet) and Windows renders it.", "Altium's print now and then leaves the title block's special strings (=Title, sheet numbers) unfilled; a failed comparison prints once more and keeps the closer image (reprinted:true), so drift confined to the title block is usually that."], json!({"sheet": "C:/proj/Power.SchDoc", "baseline": "compare"})),+            "A sub-sheet renders with its real designators. compare renders at the baseline's width and passes when driftPercent <= threshold. show_* verbs open a window; this one does not.", &["export_pdf", "show_schematic"], &["Anti-aliasing differs between tool versions: rendererChanged:true means drift may not be a design change.", "A baseline is per sheet and per width; a paper size change reads as 100 percent drift.", "Altium prints the sheet to PDF (through its project when one beside it lists the sheet) and Windows renders it.", "Windows scales the image by the display's scale factor; the bridge asks again to correct it, so width is within a pixel of the one asked (800 px is 799 at 150%): compare uses the baseline's own size.", "Altium's print now and then leaves the title block's special strings (=Title, sheet numbers) unfilled; a failed comparison prints once more and keeps the closer image (reprinted:true), so drift confined to the title block is usually that."], json!({"sheet": "C:/proj/Power.SchDoc", "baseline": "compare"})),         verb_doc("remove_parts", "Remove placed parts from the board by designator, as one undo step. The library is not touched (that is remove_footprint).",             json!({"filePath": "path to the board file (default: the board open in the tool)", "expectedRevision": "string: the revision you last read (routing_state); refused with stale_board if the board changed", "refs": "[\"R7\", \"R8\"] (required)", "allowLocked": "bool, default false", "dryRun": "bool, default false: answer the plan and change nothing"}),             json!({"removed": "[{ref, nets: [string]}]", "failed": "[{ref, error}]", "revision": "string: the board's new revision"}), 300,@@ -756,6 +756,14 @@ fn describe() -> Value {             json!({"filePath": "path to the board file (default: the board open in the tool)", "expectedRevision": "string: the revision you last read (routing_state); refused with stale_board if the board changed", "ids": "[id]", "layer": "\"F.SilkS\": every graphic on this layer", "kinds": "[line|rect|circle|arc|polygon|text|dimension]", "dryRun": "bool, default false: answer the plan and change nothing"}),             json!({"removed": "[{id, kind, layer, points}]", "revision": "string: the board's new revision"}), 300,             "Board-level graphics only; graphics inside parts are footprint_primitives. An unknown id refuses the whole call (unknown_ids).", &["routing_state", "move_parts"], &["Removing Edge.Cuts graphics removes the board outline.", "A layer or kind filter without ids removes every match: dry-run it first.", "With no ids, layer or kinds it only lists the board graphics with their ids (Altium items have none: an id is a hash of kind, layer and geometry)."], json!({"filePath": "C:/proj/Board.PcbDoc", "layer": "Dwgs.User", "dryRun": true})),+        verb_doc("export_odb", "Export the board as ODB++ (copper, drill, stack-up, netlist and parts in one archive) through the tool's own exporter.",+            json!({"filePath": "path to the board file (default: the board open in the tool)", "outputDir": "folder for the output (default beside the board)", "units": "mm|in, default mm", "compression": "zip|tgz|none, default zip"}),+            json!({"files": "[path]", "outputDir": "path"}), 600,+            "Send the archive to a fab that takes ODB++ instead of Gerbers. export_manufacturing makes the Gerber set.", &["export_manufacturing", "run_drc"], &["Run run_drc first: the file carries the board's errors with it.", "Altium writes it with its manufacturing template's settings: units, compression and version options are reported under optionsNotApplied.", "The board must be a document of a .PrjPcb in its folder."], json!({"filePath": "C:/proj/Board.PcbDoc"})),+        verb_doc("export_ipc2581", "Export the board as IPC-2581: one XML file with copper, drill, stack-up, netlist and BOM, through the tool's own exporter.",+            json!({"filePath": "path to the board file (default: the board open in the tool)", "outputDir": "folder for the output (default beside the board)", "version": "B|C, default C", "units": "mm|in, default mm", "compress": "bool, default false: zip the XML", "bomFields": "{mpn, manufacturer, distributorPn, distributor}: the part field names that carry these, so the embedded BOM is useful to the fab"}),+            json!({"file": "path"}), 600,+            "Name the part fields with bomFields, or the BOM inside the file carries no part numbers.", &["export_manufacturing", "run_drc"], &["Run run_drc first: the file carries the board's errors with it.", "Altium writes it with its manufacturing template's settings: units, compression and version options are reported under optionsNotApplied.", "The board must be a document of a .PrjPcb in its folder."], json!({"filePath": "C:/proj/Board.PcbDoc", "bomFields": {"mpn": "MPN"}})),         verb_doc("sch_connect", "Connect pins of placed parts: a wire stub from each pin's outer end plus a net label (kind label), a power port (kind power: GND-like nets get a ground symbol) or the stub alone (kind wire); or mark a pin left open on purpose with a No ERC marker (kind noerc, no net). One undo step.",             json!({"sheet": "path to the .SchDoc (required)", "connections": "[{designator, pin (number or name), net, kind: label|power|wire|noerc|port (default label), io?: input|output|bidirectional (port), stubMil (default 200)}] (required)", "save": "bool, default true"}),             json!({"connected": "int", "results": "[{designator, pin, net, kind, result, endMil}]", "failed": "[..]", "saved": "bool"}), 90,@@ -1913,6 +1921,8 @@ pub fn dispatch(command: &str, args: &Value, _forwarded: &[(String, String)]) ->         "sheet_params" => crate::bom::sheet_params(args),         "sch_place_part" => crate::sch::place_part(args),         "sch_connect" => crate::sch::connect(args),+        "export_odb" => crate::manufacturing::export_format(args, "odb"),+        "export_ipc2581" => crate::manufacturing::export_format(args, "ipc2581"),         "remove_parts" => crate::boardedit::remove_parts(args),         "edit_parts" => crate::boardedit::edit_parts(args),         "align_parts" => crate::boardedit::align_parts(args),
dev-skills/altium-bridge-test/run_verb_tests.py+33
@@ -368,8 +368,41 @@ def matrix(w):                                                  and len((d.get("ports") or {}).get("placed") or []) == 1)     M["netlist"] = dict(phase=3.5, timeout=320, **ok(projectPath=LP),                         check=lambda d: {"U1.8", "U3.1"} <= set((d.get("nets") or {}).get("N1") or []) and not d.get("compileErrors"))+    # 0.2.76: the EDA Bridge Standard's batches. Schematic wiring read live and planned (dryRun) on the lane sheet, with+    # one real text and one new stand-alone sheet; board edits planned (dryRun) on the lane board; reads for the rest.+    M["bodies"] = dict(phase=3.5, timeout=200, **ok(filePath=LB), check=lambda d: isinstance(d.get("bodies"), list) and isinstance(d.get("noBody"), list))+    M["sch_items"] = dict(phase=3.5, **ok(sheet=LS), check=lambda d: ((d.get("counts") or {}).get("wires") or 0) > 0)+    M["sch_pins"] = dict(phase=3.5, **ok(sheet=LS, references=["U1"]), check=lambda d: any(p.get("ref") == "U1" for p in d.get("pins") or []))+    M["sch_trace_point"] = dict(phase=3.5, **ok(sheet=LS, at=[50, 50]), check=lambda d: isinstance(d.get("nets"), list))+    M["sch_connect_pins"] = dict(phase=3.5, **ok(sheet=LS, pairs=[{"from": "U1.2", "to": "U1.3"}], dryRun=True), check=lambda d: len(d.get("routes") or []) == 1)+    M["sch_bus"] = dict(phase=3.5, **ok(sheet=LS, points=[[20, 20], [20, 60]], label="D[0..2]", dryRun=True))+    M["sch_bus_entry"] = dict(phase=3.5, **ok(sheet=LS, entries=[{"at": [20, 20]}], dryRun=True), check=lambda d: len(d.get("entries") or []) == 1)+    M["sch_connect_to_bus"] = dict(phase=3.5, **anyo("no bus on the lane sheet: refused by name (no_bus)", sheet=LS, pins=["U1.1"]))+    M["sch_junction"] = dict(phase=3.5, **ok(sheet=LS, points=[[30, 30]], dryRun=True), check=lambda d: len(d.get("add") or []) == 1)+    M["sch_split_wire"] = dict(phase=3.5, **anyo("no wire at that point: refused by name (not_on_wire)", sheet=LS, at=[1, 1], dryRun=True))+    M["sch_delete_wire"] = dict(phase=3.5, **anyo("no wire at that point: refused by name", sheet=LS, at=[1, 1], dryRun=True))+    M["sch_edit_label"] = dict(phase=3.5, **anyo("N1's labels planned, or none named", sheet=LS, edits=[{"net": "N1", "by": [0, 0]}], dryRun=True))+    M["sch_text"] = dict(phase=3.5, **ok(sheet=LS, texts=[{"text": "battery", "at": [20, 20]}]), check=lambda d: len(d.get("added") or []) == 1)+    M["sch_move_region"] = dict(phase=3.5, **anyo("a planned move, or nothing in the box", sheet=LS, box=[0, 0, 10, 10], by=[0, 2.54], dryRun=True))+    M["sch_fix_connectivity"] = dict(phase=3.5, **ok(sheet=LS), check=lambda d: d.get("dryRun") is True and isinstance(d.get("moves"), list))+    M["sch_page"] = dict(phase=3.5, **ok(sheet=LS), check=lambda d: (d.get("widthMm") or 0) > 0 and isinstance(d.get("titleBlock"), dict))+    M["sch_create"] = dict(phase=3.5, timeout=200, **ok(sheet=D + "/BatteryNew.SchDoc", paper="A4", title="Battery new"), check=lambda d: d.get("created") is True and d.get("paper") == "A4")+    M["sch_hierarchy"] = dict(phase=3.5, **ok(project=LP), check=lambda d: len(d.get("tree") or []) == 1)+    M["sch_sheet_pins"] = dict(phase=3.5, **ok(sheet=LS, validate=True), check=lambda d: isinstance(d.get("problems"), list))+    M["sch_reset_fields"] = dict(phase=3.5, **anyo("planned from the library, or the library named as missing", sheet=LS, all=True, dryRun=True))+    M["sch_update_from_library"] = dict(phase=3.5, **ok(sheet=LS, dryRun=True), check=lambda d: isinstance(d.get("notFound"), list))+    M["render_schematic"] = dict(phase=3.5, timeout=420, **ok(sheet=LS, width=800), check=lambda d: str(d.get("png", "")).endswith(".png") and abs((d.get("width") or 0) - 800) <= 2)  # display scaling: within a pixel+    M["remove_parts"] = dict(phase=3.5, **ok(filePath=LB, refs=["U1"], dryRun=True), check=lambda d: len(d.get("removed") or []) == 1)+    M["edit_parts"] = dict(phase=3.5, **ok(filePath=LB, edits=[{"ref": "U1", "value": "X"}], dryRun=True))+    M["align_parts"] = dict(phase=3.5, **anyo("planned, or align_blocked by name", filePath=LB, refs=["U1", "U2"], mode="top", dryRun=True))+    M["set_layer_count"] = dict(phase=3.5, timeout=200, **ok(filePath=LB, count=4, dryRun=True), check=lambda d: d.get("to") == 4)+    M["copy_routing"] = dict(phase=3.5, **anyo("planned, or nothing in the box", filePath=LB, box=[0, 0, 40, 20], offset=[0, 30], keepUnmappedNets=True, dryRun=True))+    M["check_clearance"] = dict(phase=3.5, **ok(filePath=LB, thresholdMm=20), check=lambda d: isinstance(d.get("pairs"), list))+    M["remove_graphics"] = dict(phase=3.5, **ok(filePath=LB), check=lambda d: (d.get("count") or 0) > 0)      # ---- phase 4: outputs --------------------------------------------------------------------+    M["export_odb"] = dict(phase=4, timeout=700, **anyo("ODB++ of the lane board, or no project / OutJob named", filePath=LB))+    M["export_ipc2581"] = dict(phase=4, timeout=700, **anyo("IPC-2581 of the lane board, or no project / OutJob named", filePath=LB))     M["export_step"] = dict(phase=4, timeout=300, **anyo("STEP of the battery board", filePath=PD, output=D + "/battery.step"))     M["export_bom"] = dict(phase=4, **anyo("missing OutJob: named refusal (the demo OutJob opens its .xlsx on screen)", outjobPath=D + "/missing.OutJob"))     M["export_gerber"] = dict(phase=4, **anyo("missing OutJob: named refusal", outjobPath=D + "/missing.OutJob"))
package.json+3−1
@@ -220,7 +220,9 @@     "align parts in altium",     "change altium board layer count to 4",     "copy routing to another channel in altium",-    "altium part clearance check"+    "altium part clearance check",+    "export ipc-2581 from altium",+    "check my altium board against pcbway limits"   ],   "discovery_pitch": "An AI that runs Altium Designer in the user's own session: libraries, schematics, Update PCB, stack-up, routing, DRC, Gerbers and BOMs.",   "sample_prompts": [
page.json+3−1
@@ -212,7 +212,9 @@     "align parts in altium",     "change altium board layer count to 4",     "copy routing to another channel in altium",-    "altium part clearance check"+    "altium part clearance check",+    "export ipc-2581 from altium",+    "check my altium board against pcbway limits"   ],   "discovery_pitch": "An AI that runs Altium Designer in the user's own session: libraries, schematics, Update PCB, stack-up, routing, DRC, Gerbers and BOMs.",   "metadata": {},
skills/altium-outputs/SKILL.md+13
@@ -123,6 +123,19 @@ bottom, parts with their designators) and its PCB Print fabrication drawing to t Assembly and Fabrication OutJob templates the install ships. Measured on the battery project: 6 pages (2 sheets, the composite, the drawings) in 26 s. `board: true` alone adds just the composite print. +## One format on its own, and checks by the shared engine (0.2.76)++- `altium_export_odb {filePath?, outputDir?}`: ODB++ alone (the whole tree, `lane.tgz` and `lane.zip` first).+- `altium_export_ipc2581 {filePath?, outputDir?}`: the IPC-2581 XML (`.cvg`, revision B).++Both run Altium's own output through the board's project (a .PrjPcb beside it must list the board and its+manufacturing OutJob, as `altium_export_manufacturing` needs).++`altium_fab_check`, `altium_copper_balance`, `altium_return_path`, `altium_impedance` and `altium_current_capacity`+are answered by the EDA Bridge Standard's shared engine (the same code on KiCad and Fusion). `fab_check {fab}` takes+any vendor adom/pcb-design-rules covers (`jlcpcb`, `pcbway`, `osh-park`, `eurocircuits` ...): the record for the+board's layer count, with its page and the date it was read in every finding.+ ## ODB++ and IPC-2581 (0.2.69)  `altium_export_manufacturing {projectPath, pcbPath, formats: ["odb", "ipc2581"]}` writes them beside the Gerbers, drill,
src/bridge.json+5−1
@@ -93,7 +93,9 @@     "altium_eval",     "altium_export_bom",     "altium_export_gerber",+    "altium_export_ipc2581",     "altium_export_manufacturing",+    "altium_export_odb",     "altium_export_pdf",     "altium_export_step",     "altium_extension_ping",@@ -433,7 +435,9 @@       "set_layer_count": 320,       "copy_routing": 320,       "check_clearance": 320,-      "remove_graphics": 320+      "remove_graphics": 320,+      "export_odb": 660,+      "export_ipc2581": 660     },     "prefixes": [       {