Adding splitbutton to panel problem

Adding splitbutton to panel problem

Anonymous
Not applicable
897 Views
5 Replies
Message 1 of 6

Adding splitbutton to panel problem

Anonymous
Not applicable

Using the Autodesk.Windows namespace I have replaced the Window RibbonButton with a RibbonSplitButton where I have added the built-in Window RibbonButton plus followed by a button of my own app. That works out fine. Only I want the built-in Window button to always display on top wether the user selects the built-in Windows RibbonButton or my own appllications button. Right now the last used button is displayed.

 

Example:

MyAppButton.png

I guess that this should be pretty simple to achieve, but I have not succeded yet.

Any hints?

 

Thanks

Jan Grenov

0 Likes
898 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk

Dear Jan,

 

Nobody is answering this here... maybe because it is more of a .NET question rather than a Revit API issue.

 

Is there any reason why you cannot use the official ribbon functionality provided by the Revit API?

 

I hope this helps.

 

Best regards,

 

Jeremy



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

0 Likes
Message 3 of 6

Revitalizer
Advisor
Advisor

Hi Jeremy,

 

"Is there any reason why you cannot use the official ribbon functionality provided by the Revit API?"

 

As you can see, he wants to modify the standard Autodesk GUI by reordering existing built-in buttons, which cannot be performed by Revit API but by AdWindows.dll.

Last one is not supported, anyway.

 

I faced the same problem some time ago but in my case, it did not matter if button behaved like a SplitButton or a PullDownButton.

I haven't found a soulution so far.

 

Best regards,

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 4 of 6

Anonymous
Not applicable
Hi Jeremy

What I need to do is to modify the standard GUI. For that purpose I have to make use of AdWindows.dll.

Anyway for now it seems like I may have to accept the splitbutton behaviour and keep experimenting. Thanks anyway 🙂

Regards
Jan
0 Likes
Message 5 of 6

Anonymous
Not applicable
Yep. Thats why.

/Jan
0 Likes
Message 6 of 6

Anonymous
Not applicable

Hi Revitalizer

 

I found another problem that You just might have a solution for.

When I access Revit from an Autodesk.Windows.RibbonButton I am not able to start a transaction. I simply get a message indicating that it is not allowed.

 

Have You found any solution to that problem?

 

Regards

Jan

 

0 Likes