Add command button to Fusion Tool Bar Panel

Add command button to Fusion Tool Bar Panel

brad.bylls
Collaborator Collaborator
577 Views
4 Replies
Message 1 of 5

Add command button to Fusion Tool Bar Panel

brad.bylls
Collaborator
Collaborator

Are we allowed to add a command button in the middle of a Fusion drop down?

It works if I add to the bottom of the panel using panel ID 'SolidModifyPanel'

I am trying to add a command button where shown below:

Screenshot (19).png

 

 

 

 

 

 

 

 

 

 

 

 

I am trying to use :

ui.allToolbarPanels.itemById('FusionCombineCommand').controls.addSeparator()
And then add the command button.
This is where I get the error:
Screenshot (20).png
Brad Bylls
0 Likes
Accepted solutions (1)
578 Views
4 Replies
Replies (4)
Message 2 of 5

kandennti
Mentor
Mentor

Hi @brad.bylls .

 
Try this.
ui.allToolbarPanels.itemById('SolidModifyPanel').controls.addSeparator('separatorId', 'FusionCombineCommand', False)

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-87a73951-9603-4e29-ba54-ee3529c2dcc3 

0 Likes
Message 3 of 5

brad.bylls
Collaborator
Collaborator

Thanks @kandennti 

 

That worked for the separator but I still can't get it to work for the command button.

 

Brad

Brad Bylls
0 Likes
Message 4 of 5

kandennti
Mentor
Mentor
Accepted solution

@brad.bylls .

 

There is no major difference from the separator.

ui.allToolbarPanels.itemById('SolidModifyPanel').controls.addCommand(cmdDef, 'FusionCombineCommand', False)

 

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-1ed0cfb5-2ad4-4285-9eec-484ef19f2729 

Message 5 of 5

brad.bylls
Collaborator
Collaborator

Thank you.

I should have realized that.

Brad Bylls