Stacked RibbonItems layout

Stacked RibbonItems layout

Rene_Gerlach
Advocate Advocate
532 Views
4 Replies
Message 1 of 5

Stacked RibbonItems layout

Rene_Gerlach
Advocate
Advocate

Hello,

 

i can't find a way to add only one RibbonButton into StackedItems. The AddStackedItems allow only two or three. Why?

Okay, I can use the inofficial way with AdWindows.dll, but the official way would be nice 😉

 

Second I try to layout the two stacked items like Revit at top, to get an unique UI. But the items always centered.

Any idea how to solve this?

 

Any help appreciated.

 

Thanks

René

0 Likes
533 Views
4 Replies
Replies (4)
Message 2 of 5

Revitalizer
Advisor
Advisor

Hi Rene,

 

there is no way to do so using plain Revit API.

If you want Autodesk to implement these button layout options, you could take part in the wish list surveys.

And wait some years...

 

Alternatively, just buy the Autodesk company 😉

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 3 of 5

jeremytammik
Autodesk
Autodesk

Dear René,

 

Happy New Year to you!

 

Thank you for your query, and thank you, Revitalizer, for the answer. Happy New Year to you too, by the way!

 

In addition to what Revitalizer says, I would also point out that adding one single button to s set of stacked items does not seem to make any sense to me.

 

What would that achieve beyond adding the button iself directly to the ribbon panel?

 

Yes, please always do go for the offical methods, all other can quickly lead to disaster. Thank you!

 

I hope this helps.

 

Best regards,

 

Jeremy



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

Message 4 of 5

Rene_Gerlach
Advocate
Advocate

Dear Jeremy,

 

Happy New Year to you too, hope you are well.

 

Indeed I could add one button directly, some times it is impossible to see the wood for the trees.

 

But one point is still open. How can I set the to layout for two items to top, like "Projektstandards übertragen", not like the two buttons in the "Makro"-panel

revit-layout.png

 

Cheers

René

0 Likes
Message 5 of 5

Revitalizer
Advisor
Advisor

Hi,

 

there may be a way to stack two items in the same manner as Revit itself does.

Just stack three items, third being a dummy button.

Give the third ButtonData a "." for Text property and no LargeImage or Image.

There will just be a one pixel sized point.

No chance to eliminate that minimum Text, empty strings or invisible signs will throw an exception.

 

If you just stack three items and make the third invisible afterwards, the two remaining ones will re-arrange and centrize.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine