app
Fusion - the Fusion 360 Bridge
Public Made by Adomby adom
Drive Autodesk Fusion 360 from the cloud via Adom Bridge: component libraries, IPC package generation, board layout, exports (STEP/Gerbers/BOM/CPL), fast APS cloud search, and parametric modeling.
← Commit history
Update 8 file(s)
8 files changed
+72−23
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.107+1.9.108
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.107",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.122/adom-bridge-fusion-v1.9.107.zip",- "sha256": "452f2194983abdfc6fc1f0724c353d6c28e0e952c729f74cc66010eef3c2ea4d",- "size": 442430,+ "version": "1.9.108",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.123/adom-bridge-fusion-v1.9.108.zip",+ "sha256": "0efe6f9e5c005b275fedd8d7cb7438918a65ad9c4f5c19c611218ab5a8174a54",+ "size": 443094, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.107",+ "version": "1.9.108", "description": "Drive Autodesk Fusion 360 from the cloud: launch Fusion, electronics board layout, design rules, exports (STEP/IGES/STL/3MF/USDZ/OBJ/DXF/DWG/Gerbers/BOM/CPL), fast APS server-indexed cloud search plus browse/recent/file-info/versions, cloud file download/upload and folder creation, and in-app parametric modeling (fusion_run_modeling_script). Never-charge: APS calls are capped to the free tier.", "homepage": "https://wiki.adom.inc/adom/fusion-bridge", "author": "Adom Inc.",
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.9.122"+version = "1.9.123" edition = "2021" [dependencies]
install.sh+1−1@@ -21,7 +21,7 @@ echo "Installed fusion-bridge skills: $(ls "$PKG_DIR/skills" 2>/dev/null | tr '\ # binary (the three-artifact pattern: bridge zip -> ab, THIS pkg -> container skills + # this download, page media -> wiki). Per the wiki's PKG_VS_RELEASE policy, binaries are # platform-tagged RELEASE assets, never tarball content - the installer fetches them.-DASH_VERSION="1.9.122"+DASH_VERSION="1.9.123" DASH_URL="https://wiki.adom.inc/download/adom/fusion-bridge/${DASH_VERSION}/fusion-dashboard" DEST="" if [ -w /usr/local/bin ]; then DEST=/usr/local/bin
package.json+1−1@@ -1,6 +1,6 @@ { "slug": "fusion-bridge",- "version": "1.9.122",+ "version": "1.9.123", "type": "app", "description": "This package installs the bridge's SKILLS into your container so your AI knows how to drive it; Adom Bridge loads the bridge runtime itself from the release zip.", "dependencies": {
page.json+10−7@@ -1,6 +1,6 @@ { "slug": "fusion-bridge",- "version": "1.9.122",+ "version": "1.9.123", "type": "app", "description": "This package installs the bridge's SKILLS into your container so your AI knows how to drive it; Adom Bridge loads the bridge runtime itself from the release zip.", "dependencies": {@@ -11,6 +11,10 @@ "uninstall": "./uninstall.sh" }, "tags": [+ "ab",+ "bridge",+ "fusion",+ "desktop-app", "fusion360", "autodesk", "cad",@@ -70,7 +74,10 @@ "build a basic parts library", "add a 3d model to a component", "make a fusion 360 library with 3d",- "set up the fusion bridge"+ "set up the fusion bridge",+ "fusion dashboard",+ "fusion status page",+ "open the fusion launch page" ], "discovery_pitch": "Use the Adom Bridge Fusion 360 bridge when the user wants to DRIVE Autodesk Fusion 360 from the cloud: open/search their team's Fusion cloud designs, lay out a PCB or do electronics, export STEP/IGES/STL/Gerbers/BOM, or build a component library with real rendering 3D. It runs Fusion on the user's own machine via Adom Bridge. NOT for web/browser/login/form-filling (that's the native-browser extension) and NOT for KiCad (that's the kicad bridge).", "brief": "Drive Autodesk Fusion 360 from the cloud via Adom Bridge: component libraries, IPC package generation, board layout, exports (STEP/Gerbers/BOM/CPL), fast APS cloud search, and parametric modeling.",@@ -99,9 +106,5 @@ "label": "Part volume", "prompt": "How much material does each printed part in this assembly use?" }- ],- "author": {- "name": "John Lauer",- "email": "[email protected]"- }+ ] }
server.py+53−7@@ -3005,6 +3005,54 @@ def _orchestrate_open_lbr(args: dict) -> dict: return _post_open_screenshot(response) ++def _ensure_library_active(lbr_path: str, timeout_s: int = 60) -> dict:+ """Make the .lbr the ACTIVE document - verified, not assumed (caught live 2026-08-21).++ open_lbr returning success does NOT mean the library is in front: the open is async, and+ when the library is ALREADY open the call short-circuits leaving whatever document was+ active. Create3DPackage then refuses with "Please run the command in library document" -+ exactly what the first live bind of adom-lbr output hit, with Untitled still active.+ Polls until activeDocument matches, activating by name if open-but-not-front.+ """+ import time as _t+ stem = lbr_path.replace("\\", "/").rsplit("/", 1)[-1].rsplit(".", 1)[0].lower()+ deadline = _t.time() + timeout_s+ tried_activate = False+ while _t.time() < deadline:+ try:+ st = _proxy_to_addin("get_app_state", {}, timeout=6)+ active = str((st.get("data") or {}).get("activeDocument") or "")+ if st.get("success") and stem in active.lower():+ return {"ok": True, "activeDocument": active}+ if st.get("success") and not tried_activate:+ tried_activate = True+ _proxy_to_addin("activate_document", {"name": stem}, timeout=10)+ except Exception:+ pass+ _t.sleep(2)+ return {"ok": False, "activeDocument": None}+++def _create_3d_package(lbr_path: str, timeout: int = 60) -> dict:+ """The ONLY way to run Electron.Create3DPackage: verify the library is active first.++ Five call sites each did open-then-hope with their own sleep; this replaces all of them+ so the precondition cannot be forgotten at the next one.+ """+ act = _ensure_library_active(lbr_path)+ if not act.get("ok"):+ return {"success": False, "errorCode": "library_not_active",+ "error": "The library opened but never became the ACTIVE document, so "+ "Create3DPackage would refuse ('Please run the command in library "+ "document').",+ "_hint": "Another document may be mid-operation on Fusion's main thread. "+ "Retry: the bridge polls 60s and activates by name before giving up."}+ return _proxy_to_addin("execute_text_command",+ {"command": "Electron.Create3DPackage %s" % lbr_path},+ timeout=timeout)++ def _orchestrate_attach_3d_package(args: dict) -> dict: """Attach a real 3D model to a library package, end to end. @@ -3037,7 +3085,7 @@ def _orchestrate_attach_3d_package(args: dict) -> dict: return {"success": False, "error": "open_lbr failed: " + str(open_res.get("error")), "data": {"steps": steps}} steps.append("open_lbr: ok (library active)") time.sleep(1)- cp = _proxy_to_addin("execute_text_command", {"command": f"Electron.Create3DPackage {file_path}"}, timeout=40)+ cp = _create_3d_package(file_path, timeout=40) if not cp.get("success"): return {"success": False, "error": "Create3DPackage failed: " + str(cp.get("error")), "_hint": "The library document must be ACTIVE, and the .lbr must be adom-lbr-generated "@@ -3278,7 +3326,7 @@ def _orchestrate_make_3d_package(args: dict) -> dict: if not op.get("success"): return {"success": False, "error": "open_lbr failed: " + str(op.get("error"))} _time.sleep(1)- cp = _proxy_to_addin("execute_text_command", {"command": f"Electron.Create3DPackage {lbr_path}"}, timeout=40)+ cp = _create_3d_package(lbr_path, timeout=40) if not cp.get("success"): return {"success": False, "error": "Create3DPackage failed: " + str(cp.get("error")), "_hint": "The .lbr must be adom-lbr-generated; its FIRST package's footprint is loaded into the generator."}@@ -7103,7 +7151,7 @@ def _orchestrate_show_3d_package(args: dict) -> dict: "the footprint, then shows it. A Placeholder rendering LOOKS like a " "successful 3D view in a screenshot, which is why this refuses " "rather than letting a caller count it as proof.")}- cp = _proxy_to_addin("execute_text_command", {"command": "Electron.Create3DPackage %s" % library_path}, timeout=60)+ cp = _create_3d_package(library_path, timeout=60) if not cp.get("success"): return {"success": False, "error": "Create3DPackage failed: " + str(cp.get("error")), "_hint": "The library must be Fusion-parseable (adom-lbr style); raw vendor .lbr files fail Fusion's parser."}@@ -7449,8 +7497,7 @@ def _orchestrate_demo_tour(args: dict) -> dict: if r.get("screenshot"): state["shots"].append({"title": label, "label": label, "path": r["screenshot"]}) elif key == "3d-package":- cp = _proxy_to_addin("execute_text_command",- {"command": "Electron.Create3DPackage %s" % state["sampleLbr"]}, timeout=60)+ cp = _create_3d_package(state["sampleLbr"], timeout=60) if cp.get("success"): time.sleep(3) _snap(label)@@ -8981,8 +9028,7 @@ def _handle_prove_library(fusion_info: dict, args: dict) -> dict: # 3: the 3D editor. Only reachable when a real package3d is bound - with none, Fusion # shows its Placeholder, which is exactly the false pass this verb exists to prevent. if artifacts["package3d"]["present"]:- cp = _proxy_to_addin("execute_text_command",- {"command": "Electron.Create3DPackage %s" % lbr}, timeout=90)+ cp = _create_3d_package(lbr, timeout=90) if cp.get("success"): evidence.append(_prove_capture("package3d", "3d-editor")) else: