Remove highlight on exit

Remove highlight on exit

VanQuyet.Doan
Enthusiast Enthusiast
220 Views
1 Reply
Message 1 of 2

Remove highlight on exit

VanQuyet.Doan
Enthusiast
Enthusiast

I create an add in and select two floors as shown, when the addin shows an error, the two selected floors are still highlighted, when zooming the screen, the highlight will disappear, is there any way to make the highlight disappear by itself?Screenshot_2.png

0 Likes
221 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Yes, probably. You can try setting the current selection set to zero elements via UIDocument Selection SetElementIds method:

  

https://www.revitapidocs.com/2022/cf8c11bb-f0c7-6d50-cbdf-41d0a010d9d6.htm

  

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