Handler for Existing UI Command Execution

Handler for Existing UI Command Execution

alex_superun
Explorer Explorer
260 Views
1 Reply
Message 1 of 2

Handler for Existing UI Command Execution

alex_superun
Explorer
Explorer

Hello, I would like to know if it's possible to execute a custom script when the user triggers a specific command, such as "Extrude," from the Fusion 360 UI. I have checked the documentation but couldn't find clear instructions on how to attach an event handler to pre-existing commands. Could you please provide guidance or examples on how to implement this?

0 Likes
261 Views
1 Reply
Reply (1)
Message 2 of 2

Jorge_Jaramillo
Collaborator
Collaborator

Hi,

 

I believe there is no way to change the event handler of a Fusion command.

 

What you can do is to use the UserInterface.commandTerminated (https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-E381414E-1CFF-4007-B1DF-C413D7E6841A) to define a user defined  event handler and look for the "Extrude" commandId to fire your custom script.

 

 

Regards,

Jorge Jaramillo