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
Publish 1.11.28
10 files changed
+54−23
.insiders-stage/fusion-bridge/version.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.11.27",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.11.27/adom-bridge-fusion-v1.11.27.zip",- "sha256": "046cae14d85cca77582868ae0ed37f7bb2e3aad6443364a7354f83724aa45be7",- "size": 6557389,+ "version": "1.11.28",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.11.28/adom-bridge-fusion-v1.11.28.zip",+ "sha256": "d3acf5f064e3f98e756e5c6590b035bf0806909bfdd19beddcce9bd4fc99bc27",+ "size": 6558129, "verbPrefixes": [ "fusion_" ],
.release-page-head+1−1@@ -1 +1 @@-0cca90f76cd928091489e3c51838cd7eabca5b57+e9ecef96e82fb61256a196397f75399eb3f76bac
install.shpage.json+25−9@@ -11,10 +11,6 @@ "uninstall": "./uninstall.sh" }, "tags": [- "ab",- "bridge",- "fusion",- "desktop-app", "fusion360", "autodesk", "cad",@@ -80,9 +76,6 @@ "add a 3d model to a component", "make a fusion 360 library with 3d", "set up the fusion bridge",- "fusion dashboard",- "fusion status page",- "open the fusion launch page", "aps not configured", "share aps client id across my org", "set up fusion cloud search for my company",@@ -115,5 +108,28 @@ "label": "Part volume", "prompt": "How much material does each printed part in this assembly use?" }- ]-}+ ],+ "agent_permissions": {+ "allow_bash": [],+ "allow": [+ "adom-desktop-fusion-bridge read-only verbs (via the adom-bridge CLI): fusion_readiness, fusion_get_app_state, fusion_addin_status, fusion_check_dialogs - state queries; they change nothing.",+ "adom-desktop-fusion-bridge read-only verbs: fusion_alerts (reads Fusion's own log for toasts), fusion_document_info, fusion_window_info, fusion_board_info, fusion_library_parts - inspect only.",+ "adom-desktop-fusion-bridge read-only verbs: fusion_prove_result (a persisted run report), fusion_plan_library_import (report-only preflight), fusion_list_cloud_projects, fusion_describe.",+ "adom-desktop-fusion-bridge evidence captures fusion_screenshot_fusion and fusion_capture_library_views read pixels and write local image files only."+ ],+ "soft_deny": [+ "adom-desktop-fusion-bridge lifecycle verbs fusion_stop, fusion_kill, fusion_restart_for_addin close or kill the Fusion application - keep the human prompt.",+ "adom-desktop-fusion-bridge fusion_install_fusion silently installs Autodesk Fusion on the user's machine.",+ "adom-desktop-fusion-bridge fusion_cleanup_cloud_files deletes files from the user's Autodesk cloud hub.",+ "adom-desktop-fusion-bridge managed-library verbs (fusion_managed_library_push/pull/create/link/unlink) publish to or overwrite the user's library.io libraries."+ ],+ "environment": [+ "adom-desktop-fusion-bridge is the Fusion 360 bridge for Adom Bridge; its fusion_* verbs are invoked through the adom-bridge CLI and drive Autodesk Fusion on the user's own desktop.",+ "adom-desktop-fusion-bridge desktop actions also pass Adom Bridge's own human-approval gate (caller identity, per-call reason, Activity Log) - a container approval is the first of two gates."+ ]+ },+ "author": {+ "name": "John Lauer",+ "email": "[email protected]"+ }+}
rust/Cargo.lock+5−5@@ -10,7 +10,7 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" [[package]] name = "adom-fusion-bridge"-version = "1.11.27"+version = "1.11.28" dependencies = [ "base64", "chrono",@@ -273,7 +273,7 @@ dependencies = [ [[package]] name = "fusion-core"-version = "1.11.27"+version = "1.11.28" dependencies = [ "serde", "serde_json",@@ -283,7 +283,7 @@ dependencies = [ [[package]] name = "fusion-lbr"-version = "1.11.27"+version = "1.11.28" dependencies = [ "regex", "roxmltree",@@ -295,14 +295,14 @@ dependencies = [ [[package]] name = "fusion-os-mac"-version = "1.11.27"+version = "1.11.28" dependencies = [ "fusion-core", ] [[package]] name = "fusion-os-win"-version = "1.11.27"+version = "1.11.28" dependencies = [ "fusion-core", "windows-sys 0.59.0",
rust/bridge/src/routing_script.py+19−4@@ -72,7 +72,17 @@ def snapshot(app, args): return root, board, {'boardId': identity, 'documentName': doc.name, 'revision': revision} +def _rule_len(board, name, default):+ node = board.find("designrules/param[@name='%s']" % name)+ m = re.fullmatch(r'([0-9.]+)(mm|mil)', node.get('value', '')) if node is not None else None+ return float(m[1]) * (0.0254 if m[2] == 'mil' else 1) if m else default++ def objects(board):+ rvn = board.find("designrules/param[@name='rvPadTop']")+ try: rv_pad = float(rvn.get('value')) if rvn is not None else 0.25+ except ValueError: rv_pad = 0.25+ rl_min_pad, rl_max_pad = _rule_len(board, 'rlMinPadTop', 0.254), _rule_len(board, 'rlMaxPadTop', 0.508) nets = {s.get('name'): s for s in board.findall('signals/signal')} contacts = {(c.get('element'), c.get('pad')): name for name, s in nets.items() for c in s.findall('contactref')} pads, wires, vias = {}, [], []@@ -92,10 +102,15 @@ def objects(board): key = el.get('name')+'.'+pad.get('name') poly = None if pad.tag == 'pad':- # Outer bounding circle for non-round shapes; conservative for clearance.- diameter = float(pad.get('diameter', '0'))- if diameter <= 0: diameter = float(pad.get('drill')) * 2 + 0.6- radius = diameter * (1 if pad.get('shape') in ('long','offset') else math.sqrt(2)/2)+ # the copper is the library diameter or the drill plus the board's pad restring,+ # whichever is larger; round pads are their radius, square ones their bounding+ # circle, long/offset ones their full length (the old code treated a round 1.3 mm+ # contact as a 1.84 mm square and refused legal copper beside it)+ drill_ = float(pad.get('drill'))+ ring = min(max(drill_ * rv_pad, rl_min_pad), rl_max_pad)+ diameter = max(float(pad.get('diameter', '0')), drill_ + 2 * ring)+ shape = pad.get('shape', 'round')+ radius = diameter * (1 if shape in ('long','offset') else (math.sqrt(2)/2 if shape in ('square','octagon') else 0.5)) layers = [1,16] else: radius = math.hypot(float(pad.get('dx')), float(pad.get('dy'))) / 2
tools/check-naming.shtools/check-portable.shtools/promote.shtools/release.sh