Icon for toolbar panel using python

Icon for toolbar panel using python

Cotral.RD2
Advocate Advocate
716 Views
1 Reply
Message 1 of 2

Icon for toolbar panel using python

Cotral.RD2
Advocate
Advocate

I have succeded to add an icon to the command buttons using python add ins but is it possible to add an icon to the toolbar panel? here is the code i have for creating the toolbar panel: 

 

global tbPanel

tbPanel = tbPanels.itemById('NewPanel')

if tbPanel:

tbPanel.deleteMe()

tbPanel = tbPanels.add('NewPanel', 'New Panel', 'SelectPanel', False)

 

Pavan HEMMEGE VENKATAPPA
Fusion 360 Ultimate User
0 Likes
Accepted solutions (1)
717 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

Hello,

 

You cannot specify an icon for a toolbar panel. It is only a container for other toolbar item(control). Instead you can add toolbar control to a panel and associate the control to a command definition. The toolbar control will have same icon with the command definition. For example:

 

tbPanel.controls.addCommand(commandDefinition, positionID, isBefore)

 

Thanks,

Marshal 

0 Likes