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 102 file(s)
11 files changed
+65−20
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.301+1.9.302
addin/AdomBridge/AdomBridge.manifest+1−1@@ -6,7 +6,7 @@ "description": { "": "Adom Desktop Conduit bridge add-in. Exposes a localhost HTTP API for external automation of Fusion 360." },- "version": "1.0.15",+ "version": "1.0.16", "runOnStartup": true, "supportedOS": "windows" }
addin/AdomBridge/commands/close_document.py+28−1@@ -31,6 +31,23 @@ def _stop_running_command(app, doc_name: str) -> dict: app.executeTextCommand("Commands.Abort") except Exception: pass+ try:+ # Force select mode and let the UI settle before anyone re-reads activeCommand.+ sel = ui.commandDefinitions.itemById("SelectCommand")+ if sel:+ sel.execute()+ adsk.doEvents()+ except Exception:+ pass+ try:+ after = str(ui.activeCommand or "")+ except Exception:+ after = ""+ info["after"] = after+ # STILL RUNNING = a close WOULD draw "Can't close window while command is running!+ # Stop now?" (drawn on ConfRoomROG 2026-08-31 despite terminateActiveCommand). Per+ # the no-modal doctrine, refuse the close instead; the caller closes it later.+ info["wouldPrompt"] = bool(after and after.lower() not in ("selectcommand", "select", "none")) except Exception as e: info["stopError"] = str(e)[:120] return info@@ -87,6 +104,13 @@ def handle_close_document(app: adsk.core.Application, args: dict) -> dict: # Close the document. Passing False skips the save dialog entirely. _stopped = _stop_running_command(app, doc_name)+ if _stopped.get("wouldPrompt"):+ return {"success": False, "errorCode": "command_running",+ "error": ("Refusing to close %r: Fusion command %r is still running and the close "+ "would draw 'Can't close window while command is running'. Nothing was "+ "closed and no dialog was raised." % (doc_name, _stopped.get("after"))),+ "data": {"document": doc_name, "runningCommand": _stopped.get("after")},+ "_hint": "Wait for the command to finish (or end it in Fusion) and close again."} # A MODIFIED CLOUD DOCUMENT PROMPTS EVEN WITH saveChanges=False (John, 2026-08-30: # "Unsaved changes to LAN7800" while the chain re-opened its own library). Saving it # first is the only dialog-free close, and it costs one version of a bridge document.@@ -227,7 +251,10 @@ def handle_close_all_documents(app: adsk.core.Application, args: dict) -> dict: if is_mod and not save_changes: would_prompt.append(doc_name) continue- _stop_running_command(app, doc_name)+ _st = _stop_running_command(app, doc_name)+ if _st.get("wouldPrompt"):+ would_prompt.append(doc_name + " (command %s running)" % _st.get("after"))+ continue try: if not save_changes and has_data_file and bool(doc.isModified): doc.save("adom bridge: saved before close to avoid Fusion's prompt")
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.301",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.301/adom-bridge-fusion-v1.9.301.zip",- "sha256": "ab2bc64c0629806b6de267e4c96184239e5eb49f2aa47c7b242e1f19bdf1149b",- "size": 586411,+ "version": "1.9.302",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.302/adom-bridge-fusion-v1.9.302.zip",+ "sha256": "844177c1ad593395afe023e808782ee49b9280276f70d67645f24c4d608003bf",+ "size": 587028, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.301",+ "version": "1.9.302", "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.lock+1−1@@ -4,7 +4,7 @@ version = 4 [[package]] name = "fusion-dashboard"-version = "1.9.301"+version = "1.9.302" dependencies = [ "serde_json", ]
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.9.301"+version = "1.9.302" 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.301"+DASH_VERSION="1.9.302" 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.301",+ "version": "1.9.302", "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+11−8@@ -1,6 +1,6 @@ { "slug": "fusion-bridge",- "version": "1.9.301",+ "version": "1.9.302", "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",@@ -75,7 +79,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.",@@ -104,9 +111,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+15@@ -3763,6 +3763,7 @@ def _ensure_library_active(lbr_path: str, timeout_s: int = 60) -> dict: deadline = _t.time() + timeout_s last_ws = None _reopened = {"done": False}+ _tries = {"n": 0} while _t.time() < deadline: try: st = _proxy_to_addin("get_app_state", {}, timeout=6)@@ -3803,6 +3804,20 @@ def _ensure_library_active(lbr_path: str, timeout_s: int = 60) -> dict: continue # Re-activate EVERY iteration until the workspace actually switches - a single # activate can lose the race with the 3D step's workspace change (was tried once).+ # A library that reopened into the DESIGN workspace never flips on activation+ # alone (seen live on ConfRoomROG, 2026-08-31: ten activations, still "Design");+ # re-issuing the open (newDesignFromLocal) is what lands it in the Electronics+ # Library workspace, so after a few stuck rounds do that once.+ _tries["n"] += 1+ if st.get("success") and stem in active.lower() and not ws_ok and _tries["n"] >= 4 \+ and not _tries.get("reopened"):+ _tries["reopened"] = True+ try:+ _orchestrate_open_lbr({"lbrPath": lbr_path})+ except Exception:+ pass+ _t.sleep(4)+ continue if st.get("success"): _proxy_to_addin("activate_document", {"name": stem}, timeout=10) except Exception: