Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Put the adsk module on PiPi or make a pip installer

dirktheeng
Advocate

Put the adsk module on PiPi or make a pip installer

dirktheeng
Advocate
Advocate

Not sure if this is possible or not, but it would be good to put this tool set on some commonly available python module installer.  That way people could develop fusion 360 capabilities in their own program.  For instance, at work we are developing CFD software which we use STL's from CAD packages like Fusion 360.  It would be awesome to integrate Fusion 360 in our workflow through the API.  we could define a geometry in Fusion 360 with certain user defined parameters in it and then do a CFD study on geometry by modifying the user parameters according to a design matrix and comparing output results.  To do this we need to be able to import the adsk modules into our python programs.

21st Century Woodworking

-Blending 21st Century Woodworking with Old World Skill
0 Likes
Reply
Accepted solutions (2)
1,491 Views
6 Replies
Replies (6)

marshaltu
Autodesk
Autodesk

Hello,

 

Please explain a little more about your idea. You were thinking to import adsk modules into your programs. What your programs look like? Is it separate application?

 

Currently Fusion API is only availabe in Fusion process. That means Fusion application must be running if you want to call Fusion APIs. Fusion uses Python version which it owns(C:\Users\<User>\AppData\Local\Autodesk\webdeploy\production\<guid>\Python). The adsk modules(C:\Users\<User>\AppData\Local\Autodesk\webdeploy\production\<guid>\Api\Python\packages\adsk) would be loaded automatically when Fusion startups.  

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes

dirktheeng
Advocate
Advocate

Yes, I think it would be extremely valuble to be able to import adsk modules like you do any other module in a normal python installation.  I think you should bundle everything you need to make a module into an install package and get it on PyPi (https://pypi.python.org/pypi) as a package that anybody can install in their python and call as a module.  I understand that nothing will work if Fusion isn't running, but that isn't a bg deal because people could make a call to launch fusion or just have it running when they run their python script.

 

I'm not sure how dificult this would be or even if it is possible, but it would be a big leap forward for users ability to do really cool stuff.

21st Century Woodworking

-Blending 21st Century Woodworking with Old World Skill
1 Like

prainsberry
Autodesk
Autodesk
Accepted solution

Makes sense to me and would be great.  I think there are still some limitations around calling into the Fusion process from external applications even if it is running but I will let the dev team handle that.



Patrick Rainsberry
Developer Advocate, Fusion 360
0 Likes

marshaltu
Autodesk
Autodesk
Accepted solution

Hello,

 

Thank you for valuable inputs. It is definitely our long-term goal to allow 3rd-party python application to call into Fusion 360. In short term, API clients can only rely on Fusion 360 parses/executes Python scripts because our APIs don't support out-process call so far.

 

We built a channel between customized Sypder and Fusion 360 to allow Sypder run/debug Python scripts directly. Our customized Sypder would be primary IDE for API clients in short term. Please stay tuned to future updates of Fusion 360.

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes

s.simpsonPDMV6
Participant
Participant

Hi,

 

Is there any progress on this?

0 Likes

r.james.peterson
Observer
Observer

I also really want this because right now I cant just open VSCode and start writing a script because there will be no autocompletion or tips about what methods/properties exist etc. I will still run the script from inside fusion 360, but having to open the scripts dialogue and hit edit any time I want a functioning IDE is annoying.

0 Likes