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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Events from built-in commands yet?

Message 1 of 7
374 Views, 6 Replies

Events from built-in commands yet?

If you add a scripted command to the Fusion UI it works

by a scripted event callbacks when the user interacts.


Brian Ekins explained this in an online talk about 2 years ago.

He stated that there weren't callbacks from build in commands.


Has this changed?


I would like to do a scripted sanity check when a user opens

a design. i.e. connect a built-in command to a script event.


Message 2 of 7
in reply to: julian.tilbury



Unfortunately there are no events for built-in commands yet. I would like to recommend you log your requirement to our ideastation so that our product manager can review/prioritize it.




Marshal Tu
Fusion 360 Developer
Autodesk, Inc.

Message 3 of 7
in reply to: marshaltu

Done. Thanks.

Message 4 of 7
in reply to: julian.tilbury

"Events from built-in commands" could potentially mean a lot of different things to different people.  Can you be a little more specific in what exactly you would like to do?  

Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 5 of 7
in reply to: ekinsb

I want to build an AI looking over my shoulder. Every time I enter something in the UI fusion has a callback the robot can switch on to tell

it a command has been executed, or a value has been entered.


At the moment I only need a robot assisting with user definer parameters. When I edit one, I want it recorded in a csv file of user parameters.


Fusion probably has all this as internal hooks between the UI and the engine. A systematic change to that mechanism to notify

the API would be useful.

Message 6 of 7
in reply to: julian.tilbury

I don't see us ever supporting the ability to watch and monitor as the user interacts with a command.  What I do expect we'll provide is more events related to changes in the data itself.  For example, when you edit a parameter we would fire an event that a parameter value has changed.  Or file an event when a feature is modified.  Fusion doesn't work the way you described.  It's not watching and reacting to events in the UI, but instead commands define their dialogs, collect input from the user and then call internal functions to do the work.  It's the "work" part that is important because that's what is creating or modifying the model and that's where I see us providing more support in the future.

Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 7 of 7
in reply to: ekinsb

I think we are on the same page.


Most of what I want could be done at the transactional level. I.e. a user has filled

out a form and hits "Ok". At that point the UI talks to the engine, and (if requested)

raise an event in the API.


It might be useful to get a callback per character typed, but that would be pretty specialised.




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