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 103 file(s)
9 files changed
+43−36
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.328+1.9.329
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.328",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.328/adom-bridge-fusion-v1.9.328.zip",- "sha256": "8d3498ed23501d5f607ac466afdac1965ff99ac3c6f0b7b5161694dfb4306d87",- "size": 605902,+ "version": "1.9.329",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.329/adom-bridge-fusion-v1.9.329.zip",+ "sha256": "5ea5318fc469a724e4e23c182ac730624c54f2c4079930b529aba0f84a875694",+ "size": 606042, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.328",+ "version": "1.9.329", "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.328"+version = "1.9.329" dependencies = [ "serde_json", ]
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.9.328"+version = "1.9.329" 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.328"+DASH_VERSION="1.9.329" 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.328",+ "version": "1.9.329", "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.328",+ "version": "1.9.329", "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+22−18@@ -16133,22 +16133,27 @@ def _managed_precheck(require_hub=True): return (None, ctx) -def _click_cef_button(hwnd, x_frac, y_frac, why):- """Click a button in a CEF-drawn Fusion dialog through ab's image space.-- These dialogs (Update, Create New Version) expose NOTHING to UIA - desktop_ui_tree returns- zero nodes - so there is no name to click. Capture the window and click a fraction of its- own rect, letting ab convert via the capture's coordMap so we do no coordinate math."""- shot = _ad_call("desktop_screenshot_window", {"hwnd": hwnd}, timeout=60) or {}- cm = _find_key(shot, "coordMap") or {}- shot_id = cm.get("shotId")- img = cm.get("image") or {}- w, h = int(img.get("w") or 0), int(img.get("h") or 0)- if not (shot_id and w and h):+def _click_cef_button(win, x_frac, y_frac, why):+ """Click a button in a CEF-drawn Fusion dialog (Update, Create New Version).++ These expose NOTHING to UIA - desktop_ui_tree returns zero nodes - so there is no name to+ click, only a position. Use the dialog's OWN rect from desktop_list_windows: those rects are+ already in the same physical-px space the input verbs take, so a fraction of the rect needs+ no DPI math and no screenshot. (Going via a capture's coordMap does not work from in here -+ the shotId lives in the screenshot's sidecar, not in the response the bridge can read, which+ is why the first version of this silently clicked nothing.)++ Pass hwnd so the click focuses the dialog atomically: it is a real modal window, not a Qt+ popup, so focusing is correct here.+ """+ r = (win or {}).get("rect") or {}+ left, top = r.get("left"), r.get("top")+ w, h = int(r.get("width") or 0), int(r.get("height") or 0)+ if left is None or top is None or not (w and h): return False- _ad_call("desktop_click", {"space": "image", "shotId": shot_id,- "x": int(w * x_frac), "y": int(h * y_frac),- "cursor": False, "reason": why}, timeout=25)+ _ad_call("desktop_click", {"x": int(left + w * x_frac), "y": int(top + h * y_frac),+ "hwnd": win.get("hwnd"), "cursor": False, "reason": why},+ timeout=25) return True @@ -16164,7 +16169,7 @@ def _confirm_create_version(choice="create", timeout_s=20.0): if not win: return None frac = 0.565 if choice == "create" else 0.818- clicked = _click_cef_button(win.get("hwnd"), frac, 0.824,+ clicked = _click_cef_button(win, frac, 0.824, "answer Fusion's Create New Version prompt with %s" % choice) _t.sleep(3) gone = _wait_for_top_window("Create New Version", 8) is None@@ -16193,10 +16198,9 @@ def _handle_update_prompt(choice="cancel", timeout_s=12.0): win = _wait_for_top_window("Update", timeout_s) if not win: return None- hwnd = win.get("hwnd") # The three buttons sit on one row near the bottom right, in the order merge/replace/cancel. frac = {"Merge Latest Version": 0.396, "Replace Local Library": 0.689, "Cancel": 0.903}[label]- if not _click_cef_button(hwnd, frac, 0.824,+ if not _click_cef_button(win, frac, 0.824, "answer Fusion's library Update prompt with %s" % label): return {"prompt": "Update", "answered": False, "choice": label, "error": "Could not measure the Update dialog to answer it."}