Expanded tooltip for the Ribbon

Expanded tooltip for the Ribbon

Anonymous
Not applicable
1,383 Views
9 Replies
Message 1 of 10

Expanded tooltip for the Ribbon

Anonymous
Not applicable
Is there a way to set the 'expanded' tool tip for ribbon commands?

Thanks.
0 Likes
1,384 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable

Dim app As Autodesk.Revit.Application = commandData.Application

Dim bobRibbon As RibbonPanel = app.CreateRibbonPanel("bob")

Dim rItem As RibbonItem = bobRibbon.Items(0)

rItem.ToolTip = "Did you mean this tool tip?"

jvj

0 Likes
Message 3 of 10

Anonymous
Not applicable
No. When you hover long enough on a ribbon button. The text only tooltip expands to contain more text and graphics. If possible I want to provide such tooltip for my add-in as well.
Please see the attached tooltip for beam button in Revit Structure...

Thanks.
0 Likes
Message 4 of 10

Anonymous
Not applicable
I see... Just shooting from the hip here, it looks like an event is being raised after said 'extended' time, then a chunk of help file is being displayed. From what I can find, I didn't find any event related to tool tip, or timing at all either in the revit.application or any other object (not suprising due to the development level of this API). Without access to that event, even if you did create your own image text description, how do you know when to display it? I'll keep poking around...

jvj
0 Likes
Message 5 of 10

paolomod3nese
Enthusiast
Enthusiast

This property of RibbonItem now exists, it's called LongDescription:

 

https://www.revitapidocs.com/2020/b5d651b3-136b-a0b1-fe3c-d37c55196e87.htm

 

0 Likes
Message 6 of 10

Garcia.Donoso
Participant
Participant

Hi Paolo!

 

Thanks for your help, i wanted you to ask something, do you know where I can find a manual to add some new Content to this revit ribbon tooltip? should I modify something in revit files? some .dll file?

 

I would like to add some intruction for the naming of Fill patterns for example, so i can give instructions to all the revit user of the office and get some unifided naming.

 

Thanks in advance

Message 7 of 10

paolomod3nese
Enthusiast
Enthusiast

This has been answered here. 

https://forums.autodesk.com/t5/revit-api-forum/builtin-command-custom-tooltip-popup/td-p/9259471

 

Give it a try and let me kmow!

Message 8 of 10

Garcia.Donoso
Participant
Participant

Thanks 🙂 i will try it

0 Likes
Message 9 of 10

Garcia.Donoso
Participant
Participant

Hi Paolo,😀

 

I have tried with the link you sent me and it seems that all the code is written and I should only change the part that refers to the button in particular I want to modify the tooltips....

The question is that I do not know what to do with this code, so far I have only created APIs that are loaded with a .addin file but in this case I do not know how to do it.

Do you know if there is any manual on how to do it?

 

Thank you very much in advance

0 Likes
Message 10 of 10

paolo.modenese
Observer
Observer

You have to create a plugin for Revit and then put that code there. If you've never done it before, it's not really simple... you need to know a bit about C#, Visual Studio and Revit's API to do it.

I suggest Konrads tutorials which helped me a lot to get started:

https://archi-lab.net/building-revit-plug-ins-with-visual-studio-part-one/

Good luck and may the force be with you.

 

0 Likes