← Commit history
BRIDGE_VERSION+1−1
@@ -1 +1 @@-1.9.335\ No newline at end of file+1.9.336\ No newline at end of file
addin/AdomBridge/commands/modeling.py+22−10
@@ -83,20 +83,32 @@ def handle_run_modeling_script(app: adsk.core.Application, args: dict) -> dict:     # its own library de-fronted before the ribbon clicks landed), and it littered Fusion     # with Untitled designs. So: create only when the script references `design`, or when     # the caller explicitly asks with createDesign:true.+    # The rule is about DISPLACEMENT, not about what the script says. Never shove an open+    # document out of the front to make a Design; but when there is nothing open at all there+    # is nothing to displace, so create one as before.+    #+    # (An earlier version of this guard sniffed the script for the token "design". That was+    # wrong: the 3D-bind chain models through `d = adsk.fusion.Design.cast(app.activeProduct)`+    # and never says "design", so a name-based test silently refuses the one caller that most+    # needs a Design.)     created_document = None     design = adsk.fusion.Design.cast(app.activeProduct)-    wants_design = bool(args.get("createDesign")) or re.search(r"\bdesign\b", script) is not None-    if not design and wants_design:-        app.documents.add(adsk.core.DocumentTypes.FusionDesignDocumentType)-        design = adsk.fusion.Design.cast(app.activeProduct)+    if not design:         try:-            created_document = app.activeDocument.name if app.activeDocument else None+            nothing_open = app.documents.count == 0         except Exception:-            created_document = None-    if not design and wants_design:-        return {"success": False, "error": "Could not obtain a Fusion Design to model into.",-                "_hint": "Open or create a Fusion design document, then retry. A read-only/expired "-                         "Fusion can still MODEL in memory; only saving to the cloud is blocked."}+            nothing_open = False+        if bool(args.get("createDesign")) or nothing_open:+            app.documents.add(adsk.core.DocumentTypes.FusionDesignDocumentType)+            design = adsk.fusion.Design.cast(app.activeProduct)+            try:+                created_document = app.activeDocument.name if app.activeDocument else None+            except Exception:+                created_document = None+        else:+            # A library (or drawing, or the data panel) is in front. Hand the script a None+            # design rather than replacing what the user is looking at.+            design = None      ns = {         "adsk": adsk,
adom-bridge-fusion-manifest.json+4−4
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "fusion360",-  "version": "1.9.335",-  "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.335/adom-bridge-fusion-v1.9.335.zip",-  "sha256": "c553adf80a2245cf49e821cd1aa34f5ef6eb261f9b601d5f01c1d593640638d2",-  "size": 606792,+  "version": "1.9.336",+  "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.336/adom-bridge-fusion-v1.9.336.zip",+  "sha256": "ae61a19e611d8ecce81bea7d0b25e1c6608ccd34a4281b57003eb6df8763b6a3",+  "size": 606982,   "verbPrefixes": [     "fusion_"   ],
bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "fusion360",   "displayName": "Autodesk Fusion 360",-  "version": "1.9.335",+  "version": "1.9.336",   "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.335"+version = "1.9.336" dependencies = [  "serde_json", ]
dashboard/Cargo.toml+1−1
@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.9.335"+version = "1.9.336" 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.335"+DASH_VERSION="1.9.336" 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.335",+  "version": "1.9.336",   "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.335",+  "version": "1.9.336",   "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]"-  }-}\ No newline at end of file+  ]+}