How to create a Button Highlighting Directives in Revit API

How to create a Button Highlighting Directives in Revit API

Shai.Nguyen
Advocate Advocate
293 Views
3 Replies
Message 1 of 4

How to create a Button Highlighting Directives in Revit API

Shai.Nguyen
Advocate
Advocate

Hi Everyone,

 

In pyRevit I can create a Button Highlighting Directives, that will highlight the button and the tooltip in the interface.
How can I do it in Revit API?

2019-08-30_14_53_51-.png2019-08-30_14_54_03-.png

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

jeremy_tammik
Alumni
Alumni

Looks like cool functionality. I am not aware of any such functionality in the Revit API. Maybe it is pyRevit specific? Can you share some code generating those directives, so that the exact nomenclature is clarified, so we can see what search terms to use? I searched for "pyRevit Button Highlighting Directives" and found nothing.

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

Shai.Nguyen
Advocate
Advocate

Hi Jeremy,

I found the documents about how pyRevit define the Button Highlighting:
https://pyrevitlabs.notion.site/pyRevit-Bundles-12323e3090904d9aa7cdc3d82095d3e3#fae7e6d1a4764990814... 
There are 2 options: new and updated.

0 Likes
Message 4 of 4

TripleM-Dev.net
Advisor
Advisor

Hi @Shai.Nguyen,

 

It would be a part of the pyRevit code itself, the button overlay would be easy. The tooltip overlay would be a bit more complex.

 

The pyRevit code is on GitHub , if you want to know how, that's the first place to look (I guess)

 

- Michel

0 Likes