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.
master
John Lauer
Publish thermal bottleneck planner, accepted candidate, analysis and native recording scripts
0049da5
29d ago
import sys,json,shutil
from pathlib import Path
P=Path(__file__).resolve().parent;sys.path.insert(0,str(P.parent/'thermal'));from transport import call,execute,HOST_OUTPUT
T=P/'recording';T.mkdir(exist_ok=True)
f=T/'bq25792-thermal-reroute-live.brd';shutil.copy2(P.parent/'thermal-expansion/recording/bq25792-expanded-thermal.brd',f)
r=call('send_files',{'filePaths':[str(f)],'dest':HOST_OUTPUT+'/live','reason':'Prepare a preserved baseline for the thermal bottleneck rerouting video'});assert r.get('success'),r
r=call('fusion_open_board',{'filePath':r['destinationPaths'][0]});assert r.get('success'),r
r=execute('bq25792-thermal-reroute-live',"app.executeTextCommand('Electron.run DISPLAY NONE; DISPLAY 16 17 18 20; LAYER 16; WINDOW (-1mm -1mm) (52mm 28mm);')\nresult=handle(app,{'expectDocument':target.name},'routing_state')")
(T/'before.json').write_text(json.dumps(r,indent=2));print({k:r.get(k) for k in ['segmentCount','viaCount','pourCount','airwireCount']})