Adding toolbar tab with own add in

Adding toolbar tab with own add in

n.michiels
Contributor Contributor
566 Views
1 Reply
Message 1 of 2

Adding toolbar tab with own add in

n.michiels
Contributor
Contributor

Hello All,

 

I want to add a new toolbar tab in the design workspace with python. 

I am able to do so with the example code: https://help.autodesk.com/view/fusion360/ENU/?guid=GUID- 

 

In this example they add the existing extrude command to the new toolbar tab. 

I want to add my own add-in to this new toolbar tab. I changed the code a little to insert my own add-in.

My add-in is show in the new toolbar tab, but it is not responding when clicking on it. 

 

Can somebody help me with this?

 

Thank you!

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

kandennti
Mentor
Mentor

Hi @n.michiels .

 

The 'CSVBomAddInMenuEntry' command was not defined, so it did not even show up for me.

 

I used 'Extrude' instead and it did show up and I could press it.

・・・
        # For this example, we are adding the already exisiting own add-in command into a new panel:
        cmdDefinitions = ui.commandDefinitions
        # anotherExtrudeCmd = cmdDefinitions.itemById('CSVBomAddInMenuEntry')
        anotherExtrudeCmd = cmdDefinitions.itemById('Extrude')
        runningTabbedToolbar = ui.isTabbedToolbarUI
・・・

1.png

0 Likes