Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Highlight element(s) in ActiveView

3 REPLIES 3
Reply
Message 1 of 4
stane
1032 Views, 3 Replies

Highlight element(s) in ActiveView

Hey guys!

I wonder if it is possible to ask revit api to only highlight (without selecting!!!) a specific element in active view. Exactly like it does when you hover over an element with mouse in the view.

 

Basically I have a modeless(using external events) grid of elements, and would like to highlight the appropriate element in the view when user clicks on it in the grid.

 

I tried to achieve that using ActiveView.SetElementOverrides(), but it seems a bit of a clunky and heavy(RefreshActiveView()) solution + I dont know how to make the outline visible through other elements overlapping it (like it is the case with mouse hover outline).

What would be the appropriate solution to this problem?

Thanks a lot!

3 REPLIES 3
Message 2 of 4
jeremytammik
in reply to: stane

I am not aware of any support for this in the Revit API. Sorry.

 

Cheers,

 

Jeremy



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

Message 3 of 4
aignatovich
in reply to: stane

Hi!

 

Perhaps, the best way to achieve this is element selection (why don't you want to do this?), but you can try AVF framework to draw something (element geometry in your case) with specific color(s)

Message 4 of 4
jeremytammik
in reply to: stane

For the sake of completeness, some more details on the basic approach for selecting elements are given here:

 

https://forums.autodesk.com/t5/revit-api-forum/highlight-element-during-startup/m-p/7770770

 

Cheers,

 

Jeremy



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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report