Capture background commands on Icon click

Capture background commands on Icon click

MrABlackwell
Explorer Explorer
234 Views
1 Reply
Message 1 of 2

Capture background commands on Icon click

MrABlackwell
Explorer
Explorer

How can I display the command line in real time when an icon is selected.

 

If I can see what's happening when I click an Icon, it would help to build a script.

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

kandennti
Mentor
Mentor

Hi @MrABlackwell .

 

I didn't know which icon you meant, but when some command is executed, it is possible to know what command was called.

 

The UserInterface.commandStarting event is an event that is fired when a command is invoked.

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-EBB6C82A-A256-4AB7-9A86-0F7A9653A7E9 

 

I have published an add-in that uses this event to display the invoked command information log in a text command window.

https://github.com/kantoku-code/Fusion360_Developers_Small_ToolKit 

 

By setting this switch to On, the log display starts.

1.png

 

Please forgive that the description is only in Japanese, as I created this add-in for my personal use.