Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
Le_Bear
1237 Views, 6 Replies

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

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
 
6 REPLIES 6
Message 2 of 7
marshaltu
in reply to: Le_Bear

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 360 Developer
Autodesk, Inc.

Message 3 of 7
Le_Bear
in reply to: marshaltu


@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
in reply to: marshaltu

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

Message 5 of 7
gofrm76
in reply to: dewaine50

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.

Message 6 of 7
JesusFreke
in reply to: gofrm76

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.

Message 7 of 7
tiktuk
in reply to: Le_Bear

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report