Context Menu - Tooltip does not Work

Context Menu - Tooltip does not Work

Sean_Page
Collaborator Collaborator
837 Views
6 Replies
Message 1 of 7

Context Menu - Tooltip does not Work

Sean_Page
Collaborator
Collaborator

I have created a new CommandMenuItem and applied it successfully to the Context Menu, but the SetToolTip() method doesn't appear to be working, or the main UI isn't displaying the Tooltip at the very least. Is there something I am missing? All the built in Menu's have the instructions in the bottoms left.

 

Register Menu:

private void RegisterContextMenu(UIControlledApplication application)
{
    application.RegisterContextMenu("RDG", new CreateContextMenu());
}

 

Interface:

internal class CreateContextMenu : IContextMenuCreator
{
    public void BuildContextMenu(ContextMenu menu)
    {
        menu.AddSeparator();
        CommandMenuItem item = new CommandMenuItem("Place on Sheet", typeof(ViewActiveToSheet).FullName, Assembly.GetAssembly(typeof(ViewActiveToSheet))!.Location);
        item.SetAvailabilityClassName("Revit.Tools.Context.ViewMenuAvailability");
        item.SetToolTip("Does this turn off?");
        menu.AddItem(item);
    }
}

 

Sean_Page_0-1720194103729.png

 

 

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
0 Likes
838 Views
6 Replies
Replies (6)
Message 2 of 7

ricaun
Advisor
Advisor

Yep, looks like is not working. Can't find the ToolTip for the CommandMenuItem. 😐

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

Message 3 of 7

jeremy_tammik
Alumni
Alumni

I asked the development team whether they are aware of this and how it can be achieved. Thank you for asking. Happy weekend.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 4 of 7

jeremy_tammik
Alumni
Alumni

The development team confirmed that currently the tooltip is not enabled. It might be possible to implement. How important is this to you and the community? Could you submit a wish list item to the Revit Idea Station so we can get a show of hands for this? Please also add your own business case to the wish list item that your create to raise its priority:

   

This issue is important to me. What can I do to help?

  

This issue needs to be assessed by our engineering team and prioritised against all other outstanding tasks. Any information that you can provide to influence this assessment will help. Please provide the following where possible:

   

  • Impact on your application and/or your development.
  • The number of users affected.
  • The potential revenue impact to you.
  • The potential revenue impact to Autodesk.
  • Realistic timescale over which a fix would help you.
  • Detailed use cases for the workflows that this change would address.

  

This information is crucial. Our engineering team has limited resources and must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.

  

Thank you!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 5 of 7

Sean_Page
Collaborator
Collaborator

Thanks for the follow up Jeremy.

 

I guess I saw this more of a bug than a request because the SetToolTip() method is a builtin part of the new ContextMenu. 

 

https://thebuildingcoder.typepad.com/blog/2024/04/whats-new-in-the-revit-2025-api.html#4.2.19

 

Realistically there isn't a specific impact I could point too since it's a new feature but does seem like something that is a base use feature, and tooltips are nearly available for everything anymore so seems like it should just work. And of course, I completely understand you are only the messenger her and as always appreciate everything you do for us all!

 

 

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
0 Likes
Message 6 of 7

jeremy_tammik
Alumni
Alumni

Dear Sean,

   

Thank you for your update and appreciation. Agree.

  

I logged the issue REVIT-224023 [Revit API ContextMenu SetToolTip method] with our development team for this on your behalf as it requires further exploration and possibly a modification to our software. Please make a note of this number for future reference.

  

You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.

 

Best regards,

 

Jeremy

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 7 of 7

jeremy_tammik
Alumni
Alumni

Code fix issue: REVIT-224040 [Revit API ContextMenu SetToolTip method]. Please make a note of this number for future reference.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes