Where are the Fusion 360 modules located?

Where are the Fusion 360 modules located?

Anonymous
Not applicable
800 Views
2 Replies
Message 1 of 3

Where are the Fusion 360 modules located?

Anonymous
Not applicable

Where are the Fusion 360 modules located? Like, at the start of each script, you import adsk.core, adsk.fusion and adsk.CAM.
Where would I find these files on my computer? So I can add them to my computer's PATH variables list in order to call my scripts without using spyder.

0 Likes
801 Views
2 Replies
Replies (2)
Message 2 of 3

ekinsb
Alumni
Alumni

It isn't a consistent location but changes depending on the version of Fusion installed.  Here's the current version on my machine.

 

C:\Users\ekinsb\AppData\Local\Autodesk\webdeploy\production\ba8d00e1d3edcf8bc857786ba8a2c11fa2b8c071\Api\Python\packages\adsk

 

However, referencing these libraries into any Python program won't let you use the API.  You're program needs to be running within the Python in Fusion, which today is only accessible through Spyder.  We would like to let people choose the IDE of their choice but it's not easy and there are technical issues to resolve. 


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 3

dewaine50
Advocate
Advocate

Recently, Fusion switched over to Visual Studio from Spyder and as a result has completely obliterated the functionality of ALL my scripts. This is super infuriating. Like, this change wasn't even necessary. Now all my scripts are complaining that it can't find moduel adsk. like, WTF I opened these scripts to edit FROM fusion360. Why aren't they loaded automatically. This worked before in spyder. What's going on now.