Icon for Stacked Buttons does not appear

Icon for Stacked Buttons does not appear

Anonymous
Not applicable
836 Views
3 Replies
Message 1 of 4

Icon for Stacked Buttons does not appear

Anonymous
Not applicable

When writing code for the buttons in a new tab, I don't have trouble with setting the icon for the PushButton to be the desired LargeImage at 32x32 pixels, or the QuickAcces Image at 16x16 pixels. However, when creating Stacked Buttons, I can't view the Image set to be the icon, and when added to the QuickAcces bar, the icon is blank as well. I use the same 16x16 pixel image for both the regular PushButton and the Stacked Buttons, and have not had success with the Stacked Button. 

In addition, when I attempt to add a ToolTip message to the PushButtonData for a Stacked Button, it never appears as it does for a normal PushButton.

0 Likes
837 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Dear Cailin,

 

Afaik, all ribbon UI functionality officially supported by the Revit API is demonstrated by the 2_Revit_UI_API project in the Revit API training labs:

 

https://github.com/ADN-DevTech/RevitTrainingMaterial

 

If the functionality you are aiming for is not included there, it may not be possible at all.

 

Please note that Revit itself implements some ribbon UI items that cannot be reproduced by an add-in using the official Revit API access.

 

I hope this helps.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 4

Anonymous
Not applicable

As it turns out, I am an enormous dunce, and I was trying to add the images after having added the buttons to the panel. Thank you so much for your help, though!

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Congratulations on solving it!

 

These things happen, and I totally understand and empathise  🙂

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder