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: 

Python/Javascript REPL/console?

2 REPLIES 2
Reply
Message 1 of 3
ittay.dror
731 Views, 2 Replies

Python/Javascript REPL/console?

I'd like to drive Fusion 360 by typing commands in a console (my use case is that I can't seem to be able to set a home position for a joint and hope it is a bug in the GUI and that using the API i'll be able to do it). In Sketchup there's a Ruby console where I can type Ruby expressions that are evaluated and can work with the model. Is there something like this for Fusion 360? 

2 REPLIES 2
Message 2 of 3
marshaltu
in reply to: ittay.dror

Hello,

 

Please refer to the following thread. Some client implemented the application how to do remote control for Autodesk Fusion 360. That can probably give some clues how drive Fusion 360 by "console".  

 

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/remote-control-for-autodesk-fusion-360/m-p...

 

Thanks,

Marshal



Marshal Tu
Fusion 360 Developer
Autodesk, Inc.

Message 3 of 3
ekinsb
in reply to: ittay.dror

I'm not exactly sure what you're looking for, but there is one other option. In the Fusion 360 UI you can turn on the display of the "TEXT COMMANDS" window.  You do this in the "View" option within the File menu.  When the "TEXT COMMANDS" window is displayed you can choose the "Py" option in the lower-right corner.  Now you can access and use the Python API from here.  For example, if you type the following lines it will show you how many features exist in the root component

 

from adsk.core import *

from adsk.fusion import *

app = adsk.core.Application.get()

des = app.activeProduct

des.rootComponent.features.count


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog

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