What is the path to Fusion 360 API internal module adsk?

What is the path to Fusion 360 API internal module adsk?

Le_Bear
Collaborator Collaborator
2,202 Views
6 Replies
Message 1 of 7

What is the path to Fusion 360 API internal module adsk?

Le_Bear
Collaborator
Collaborator

I did manage to get VS Code to work with Fusion to debug, and this is neat. The only thing missing now is to get Intellisense to work for the API. It works just fine for any "standard" python, but not having it for the API kinda defeat the purpose of using VS Code.

Not sure were the settings/parameters for Spyder are, guess I could find it there.

Thanks for your help,

regards,

Bernard

Bernard Grosperrin

Autodesk Certified Instructor

FaceBook Group | Forum | YouTube

Group Network Leader
 
0 Likes
Accepted solutions (1)
2,203 Views
6 Replies
Replies (6)
Message 2 of 7

marshaltu
Autodesk
Autodesk
Accepted solution

Hello,

 

The intelligense files for Python API are located under "%localappdata%Autodesk\webdeploy\production\<xxxx>\Api\Python\packages\adsk\defs\adsk". Ideally it should work in VS Code if you add the path to the setting as described as blew:

 

https://donjayamanne.github.io/pythonVSCodeDocs/docs/autocomplete/

 

Thanks,

Marshal 



Marshal Tu
Fusion Developer
>
Message 3 of 7

Le_Bear
Collaborator
Collaborator

@marshaltuwrote:

Hello,

 

The intelligense files for Python API are located under "%localappdata%Autodesk\webdeploy\production\<xxxx>\Api\Python\packages\adsk\defs\adsk". Ideally it should work in VS Code if you add the path to the setting as described as blew:

 

https://donjayamanne.github.io/pythonVSCodeDocs/docs/autocomplete/

 

Thanks,

Marshal 


Thanks, I was not sure and stopped at packages\adsk. Should work now, I hope!

Bernard

Bernard Grosperrin

Autodesk Certified Instructor

FaceBook Group | Forum | YouTube

Group Network Leader
 
Message 4 of 7

dewaine50
Advocate
Advocate

How do I know which numbers <xxxx> to pick? I have two instances that have Api\python

Do I just pick one at random? Where's the real adsk

0 Likes
Message 5 of 7

gofrm76
Participant
Participant

in my case, the API-path was only populated in one of the five instances I had in the "production" directory.

All the others contained only an empty __init__.py file.

0 Likes
Message 6 of 7

JesusFreke
Advocate
Advocate

If it's useful, here's the code my fusion 360 plugin for PyCharm/IDEA uses to find the path to the fusion directory.

It basically just iterates through every guid directory until it finds the non-empty one.

0 Likes
Message 7 of 7

tiktuk
Advocate
Advocate

I found it in "~/Library/Application Support/Autodesk/Autodesk Fusion 360/API/Python/defs".