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)
10 files changed
+111−25
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.282+1.9.283
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.7",+ "version": "1.0.8", "runOnStartup": true, "supportedOS": "windows" }
addin/AdomBridge/commands/activity_palette.py+89−6@@ -69,6 +69,71 @@ def _html(title, detail, percent, eta_sec, tone): } +def _shell_html():+ """The banner page, written ONCE. Every later update arrives through+ palette.sendInfoToHTML("update", json) and is applied by the page's own script.++ THE THREAD LEAK (John, 2026-08-30: Fusion at 21,900 OS threads after 30 hours of+ imports, add-in answering in seconds, restart prompts, runs crawling). Measured on a+ fresh Fusion with add-in 1.0.7: 85 HTTP requests to the add-in added zero threads, five+ library open/close cycles added zero after the first, but 20 banner updates added 58 OS+ threads, about three per update. The old update path re-set htmlFileURL every time,+ which made Fusion's embedded browser reload the page (and leak its threads) on every+ frame, every part and every 10 s watchdog beat: thousands of reloads per run. Now the+ page loads once and the bridge only sends it data."""+ return """<!doctype html><html><head><meta charset="utf-8"><style>+ html,body{margin:0;background:#0d1117;color:#e6edf3;font:13px/1.45 'Segoe UI',system-ui,sans-serif}+ .wrap{padding:12px 14px}+ .brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:12px;letter-spacing:.02em;color:#00b8b1;text-transform:uppercase}+ .mark svg{height:16px;width:auto;display:block}+ .brandtxt{color:#8b949e;text-transform:none;letter-spacing:0;font-weight:500}+ .dot{width:8px;height:8px;border-radius:50%%;background:#00b8b1;box-shadow:0 0 0 3px rgba(0,184,177,.18)}+ h1{font-size:15px;font-weight:600;margin:8px 0 2px}+ .detail{color:#8b949e;font-size:12px;min-height:1.4em}+ .track{height:6px;background:#21262d;border-radius:3px;margin:10px 0 6px;overflow:hidden}+ .fill{height:100%%;width:0%%;background:#00b8b1;transition:width .4s ease}+ .meta{display:flex;justify-content:space-between;font-size:11px;color:#8b949e;font-variant-numeric:tabular-nums}+ .warn{margin-top:10px;padding:8px 10px;border-left:3px solid #00b8b1;background:#161b22;border-radius:6px;font-size:12px}+ .warn[hidden]{display:none}+ </style></head><body><div class="wrap">+ <div class="brand"><span class="mark">%(logo)s</span><span class="dot" id="dot"></span><span class="brandtxt">is driving Fusion</span></div>+ <h1 id="title">Working</h1>+ <div class="detail" id="detail"></div>+ <div class="track"><div class="fill" id="fill"></div></div>+ <div class="meta"><span id="pct">0%%</span><span id="eta"></span></div>+ <div class="warn" id="warn">Please do not click, type or close documents in Fusion until this finishes. Your other apps are unaffected.</div>+ </div>+ <script>+ var COLORS={working:'#00b8b1',done:'#3fb950',failed:'#f85149'};+ function apply(d){+ var c=COLORS[d.tone]||COLORS.working;+ document.getElementById('title').textContent=d.title||'Working';+ document.getElementById('detail').textContent=d.detail||'';+ var pct=Math.max(0,Math.min(100,parseInt(d.percent||0,10)||0));+ var fill=document.getElementById('fill'); fill.style.width=pct+'%%'; fill.style.background=c;+ document.getElementById('dot').style.background=c;+ document.getElementById('pct').textContent=pct+'%%';+ document.getElementById('eta').textContent=d.eta||'';+ var w=document.getElementById('warn'); w.hidden=(d.tone&&d.tone!=='working'); w.style.borderLeftColor=c;+ }+ window.fusionJavaScriptHandler={handle:function(action,data){+ try{ if(action==='update'){ apply(JSON.parse(data||'{}')); } }catch(e){ return 'ERR '+e; }+ return 'OK';+ }};+ </script></body></html>""" % {"logo": ADOM_LOGO_SVG}+++def _payload(title, detail, percent, eta_sec, tone):+ import json as _json+ eta = ""+ if eta_sec is not None:+ m, s = divmod(max(0, int(eta_sec)), 60)+ eta = ("about %dm %02ds left" % (m, s)) if m else ("about %ds left" % s)+ return _json.dumps({"title": str(title or "Working"), "detail": str(detail or ""),+ "percent": max(0, min(100, int(percent or 0))), "eta": eta,+ "tone": tone or "working"})++ def _write_html(html): """Write the banner HTML to a stable temp file; return its path for the palette.""" import os, tempfile@@ -103,16 +168,18 @@ def handle_activity_banner(app: adsk.core.Application, args: dict) -> dict: pass return {"success": True, "visible": False} - html = _html(args.get("title") or "Working", args.get("detail") or "",- args.get("percent"), args.get("etaSec"), args.get("tone") or "working")+ payload = _payload(args.get("title") or "Working", args.get("detail") or "",+ args.get("percent"), args.get("etaSec"), args.get("tone") or "working") # ALWAYS RE-RESOLVE BY ID. A cached handle outlived a deleted palette on hardware # (2026-08-28) and every later call operated on a ghost: add() reported success, # Fusion's registry said nothing existed, and the retry failed with # "InternalValidationError: pArea". Fusion is the source of truth for whether the # palette exists; the module variable is only a hint.- path = _write_html(html) _palette = ui.palettes.itemById(PALETTE_ID)+ created = False if _palette is None:+ path = _write_html(_shell_html())+ created = True _palette = ui.palettes.add( PALETTE_ID, "Adom", path, True, # isVisible@@ -127,12 +194,28 @@ def handle_activity_banner(app: adsk.core.Application, args: dict) -> dict: except Exception: pass else:+ if not _palette.isVisible:+ _palette.isVisible = True+ # DATA, NOT A RELOAD: the page applies the payload in place. Right after creation+ # the page may not have run its script yet; retry briefly, and only if the message+ # never lands fall back to one reload of the shell (never per update).+ delivered = False+ for _try in range(6 if created else 2): try:- _palette.htmlFileURL = path+ r = _palette.sendInfoToHTML("update", payload)+ if str(r or "").startswith("OK"):+ delivered = True+ break+ except Exception:+ pass+ import time as _t+ _t.sleep(0.25)+ if not delivered and not created:+ try:+ _palette.htmlFileURL = _write_html(_shell_html())+ _palette.sendInfoToHTML("update", payload) except Exception: pass- if not _palette.isVisible:- _palette.isVisible = True # Report what FUSION says, not what we intended. q = ui.palettes.itemById(PALETTE_ID) return {"success": q is not None, "visible": bool(q.isVisible) if q else False,
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.282",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.282/adom-bridge-fusion-v1.9.282.zip",- "sha256": "ddf1b1302a8fd03120b1b3c8b804dcb98f8ec14d75a22c2bb1e2fd94b0a11bc2",- "size": 572336,+ "version": "1.9.283",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.283/adom-bridge-fusion-v1.9.283.zip",+ "sha256": "f87344fbabb4f6d1427c496f4403852d1919e114e9fb63967815ef81a67db3f6",+ "size": 573585, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.282",+ "version": "1.9.283", "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.282"+version = "1.9.283" dependencies = [ "serde_json", ]
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.9.282"+version = "1.9.283" 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.282"+DASH_VERSION="1.9.283" 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.282",+ "version": "1.9.283", "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.282",+ "version": "1.9.283", "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]"- }-}+ ]+}