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.
fusion_open_lbr ignores its lbrPath argument - sees empty path, refuses to open any .lbr
From the Adom Bridge web-control library-import test campaign (fusion bridge 1.9.212).
Bug
fusion_open_lbr ignores its path argument and refuses to open ANY .lbr, blaming the file with a misleading "not readable" error.
Reproduction (verified live on crr, 1.9.212)
The file is definitely present and valid on the box:
Get-Item C:/tmp/rayparts/tja1050.lbr -> Length 7682
Yet:
fusion_open_lbr {"lbrPath":"C:/tmp/rayparts/tja1050.lbr"}
=> success:false, errorCode:"lbr_invalid",
error: " will not open in Fusion: file-readable: [WinError 3] The system cannot find
the path specified: '' - refusing to hand it over ..."
Note the path it actually checked is the empty string '' - it never received my lbrPath. Passing the argument as libraryPath gives the identical empty-path error.
Proof it's the arg, not the file
fusion_build_library_3d read the exact same path successfully in the same session:
fusion_build_library_3d {"lbrPath":"C:/tmp/rayparts/tja1050.lbr", "parts":[...]}
=> success:true, boundLbr:"C:/tmp/rayparts/tja1050.lbr", partsTotal:1, status:"started"
So the file is fine and readable; fusion_open_lbr specifically fails to pick up its path argument (documented as lbrPath in docs/electronics-libraries.md), always sees '', and refuses.
Impact
fusion_open_lbr is unusable standalone - it can open no library. It is not blocking the import pipeline (because fusion_build_library_3d opens the library itself), but the verb is broken, and the error message actively misleads (it says the FILE is unreadable when the real problem is the empty path it was handed).
Ask
Fix fusion_open_lbr to read its path argument (lbrPath, matching the doc and fusion_build_library_3d). Until then, the "file-readable: ... path specified: ''" message should at least say "no path argument was provided" so callers aren't sent to re-stage a perfectly good file.