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: 

Adding toolbar tab with own add in

1 REPLY 1
Reply
Message 1 of 2
n.michiels
177 Views, 1 Reply

Adding toolbar tab with own add in

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!

1 REPLY 1
Message 2 of 2
kandennti
in reply to: n.michiels

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

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