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.27
10 files changed
+53−26
.insiders-stage/fusion-bridge/version.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.11.26",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.11.26/adom-bridge-fusion-v1.11.26.zip",- "sha256": "7a807337f9fc217eb0ab0936f9f10c987e5b17e860c1f65f020efc8c3ed5ae65",- "size": 6557374,+ "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, "verbPrefixes": [ "fusion_" ],
.release-page-head+1−1@@ -1 +1 @@-fea8f83903cb69cadf7b4411c948653afb96c937+0cca90f76cd928091489e3c51838cd7eabca5b57
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.26"+version = "1.11.27" dependencies = [ "base64", "chrono",@@ -273,7 +273,7 @@ dependencies = [ [[package]] name = "fusion-core"-version = "1.11.26"+version = "1.11.27" dependencies = [ "serde", "serde_json",@@ -283,7 +283,7 @@ dependencies = [ [[package]] name = "fusion-lbr"-version = "1.11.26"+version = "1.11.27" dependencies = [ "regex", "roxmltree",@@ -295,14 +295,14 @@ dependencies = [ [[package]] name = "fusion-os-mac"-version = "1.11.26"+version = "1.11.27" dependencies = [ "fusion-core", ] [[package]] name = "fusion-os-win"-version = "1.11.26"+version = "1.11.27" dependencies = [ "fusion-core", "windows-sys 0.59.0",
rust/bridge/src/routing_script.py+18−7@@ -273,12 +273,12 @@ def plan(board,args): unique.append(item) planned=unique if not planned or len(planned)>512: fail('invalid_path','Need 1..512 nonzero copper items')- ctx=routing_context(board,args,net,width,drill)+ ctx=routing_context(board,args,net,width,drill if any(i['kind']=='via' for i in planned) else 0) clearance=ctx['clearance']; obstacles=ctx['obstacles'] xmin,xmax,ymin,ymax=ctx['bounds'] for item in planned: via=item['kind']=='via'; a=item['at'] if via else item['start']; b=a if via else item['end']- radius=max(item['diameter']/2,item['drill']+.3) if via else item['width']/2; layers=[1,16] if via else [item['layer']]+ radius=ctx['via_dia'](item['diameter'],item['drill'])/2 if via else item['width']/2; layers=[1,16] if via else [item['layer']] margin=ctx['edgeClearance']+radius if any(not(xmin+margin<=p[0]<=xmax-margin and ymin+margin<=p[1]<=ymax-margin) for p in (a,b)): fail('clearance_violation','Candidate copper violates the board-edge margin')@@ -306,16 +306,18 @@ def routing_context(board,args,net,width,drill): value=node.get('value',''); m=re.fullmatch(r'([0-9.]+)(mm|mil)',value) if not m: fail('unsupported_rules','Cannot interpret '+name+'='+value) return float(m[1])*(0.0254 if m[2]=='mil' else 1)- clearance=max(number(args.get('clearance',0.2),True),*(rule(k,0.2) for k in+ # the board's own rules decide; a caller's clearance can only raise them+ clearance=max(number(args.get('clearance',0.0001),True),*(rule(k,0.2) for k in ('mdWireWire','mdWirePad','mdWireVia','mdPadPad','mdPadVia','mdViaVia'))) # Honor the requested net class and global minimums; cross-class clearance below. classes=board.findall('classes/class') selected=next((c for c in classes if c.get('number')==nets[net].get('class','0')),None) if selected is not None: clearance=max([clearance]+[float(c.get('value')) for c in selected.findall('clearance')])- if width<float(selected.get('width','0')) or drill<float(selected.get('drill','0')):+ if width<float(selected.get('width','0')) or (drill and drill<float(selected.get('drill','0'))): fail('design_rule_violation','Width/drill is below this net class minimum')- if width<rule('msWidth',0.2) or drill<rule('msDrill',0.3):+ # the via drill only matters when the path changes layer (a pure trace has no hole)+ if width<rule('msWidth',0.2) or (drill and drill<rule('msDrill',0.3)): fail('design_rule_violation','Width/drill is below the board minimum') boundary=board.findall("plain/wire[@layer='20']") if len(boundary)!=4 or any(float(w.get('curve','0')) for w in boundary):@@ -328,12 +330,21 @@ def routing_context(board,args,net,width,drill): obstacles=[] for p in pads.values(): obstacles.append((p['net'],p['at'],p['at'],p['radius'],p['layers'],p.get('poly'))) for w in wires: obstacles.append((w['net'],w['start'],w['end'],w['width']/2,[w['layer']],None))- for v in vias: obstacles.append((v['net'],v['at'],v['at'],max(v['diameter'],v['drill']*2+0.6)/2,[1,16],None))+ # a via's copper is its diameter, or the drill plus the board's via restring when the+ # diameter is left to the rules (0); the old drill*2+0.6 doubled a 0.6 mm via+ def ratio(name,default):+ node=board.find("designrules/param[@name='%s']"%name)+ try: return float(node.get('value')) if node is not None else default+ except ValueError: return default+ def via_dia(d,drill):+ ring=min(max(drill*ratio('rvViaOuter',0.25),rule('rlMinViaOuter',0.2032)),rule('rlMaxViaOuter',0.508))+ return max(d,drill+2*ring)+ for v in vias: obstacles.append((v['net'],v['at'],v['at'],via_dia(v['diameter'],v['drill'])/2,[1,16],None)) for h in board.findall('plain/hole'): xy=[float(h.get('x')),float(h.get('y'))]; obstacles.append((None,xy,xy,float(h.get('drill'))/2,[1,16],None)) if board.findall('libraries/library/packages/package/hole'): fail('unsupported_board','Footprint mounting holes require transformed obstacle support')- return {'clearance':clearance,'edgeClearance':rule('mdCopperDimension',0.5),'bounds':(xmin,xmax,ymin,ymax),'obstacles':obstacles,'pads':pads}+ return {'via_dia':via_dia,'clearance':clearance,'edgeClearance':rule('mdCopperDimension',0.5),'bounds':(xmin,xmax,ymin,ymax),'obstacles':obstacles,'pads':pads} def native_drc(app):
tools/check-naming.shtools/check-portable.shtools/promote.shtools/release.sh