# Select multiple elements that stay highlighted

**URL:** <https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945>\
**Category:** Uncategorized\
**Created:** [June 26, 2025, 6:56am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945 "2025-06-26T06:56:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laura\_BIMChick](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@Laura\_BIMChick](https://forum.dynamobim.com/u/Laura_BIMChick)\
**Post date:** [June 26, 2025, 6:56am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945/1 "2025-06-26T06:56:20Z")

</div>

I’m currently using a node from DataShapes to allow for manual selection through UI but the selected elements do not stay highlighted…

I’ve also tried the python-solution from @ [c.poupin](https://forum.dynamobim.com/u/c.poupin) but this also doesn’t keep my selected elements highlighted. (This was a solution from 4 years ago, so maybe there was a change in the API?)

> [@Node for Picking Elements in Order with Revit UI](https://forum.dynamobim.com/t/node-for-picking-elements-in-order-with-revit-ui/66508/11):
>
> An idea of workaround (with IronPython) [OrderSelection] import clr import sys import System clr.AddReference('RevitAPI') import Autodesk from Autodesk.Revit.DB import \* import Autodesk.Revit.DB as DB clr.AddReference('RevitAPIUI') from Autodesk.Revit.UI import \* from Autodesk.Revit.UI.Selection import \* from System.Collections.Generic import List clr.AddReference('RevitServices') import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions imp…

Here is my script, suggestions are welcome:  
[Select multiple elements highlighted.dyn](https://forum.dynamobim.com/uploads/short-url/iFvOyqAbXbgoB4YGSKVP6dyHBFN.dyn) (14.2 KB)

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [June 26, 2025, 6:59am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945/2 "2025-06-26T06:59:18Z")

</div>

Did you check this?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/b/5b93ceef9ffcd712b8b980de08e42e5d30108b24.png)

---

<div class="post-metadata">

**Author:** ![Laura\_BIMChick](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@Laura\_BIMChick](https://forum.dynamobim.com/u/Laura_BIMChick)\
**Post date:** [June 26, 2025, 7:00am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945/3 "2025-06-26T07:00:52Z")

</div>

Yes, this option is checked

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [June 26, 2025, 7:01am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945/4 "2025-06-26T07:01:31Z")

</div>

To me its visible in 3d

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/b/5baa090fd4ebdadcc4547cc94e6149953e32ce3b.png)

---

<div class="post-metadata">

**Author:** ![Laura\_BIMChick](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@Laura\_BIMChick](https://forum.dynamobim.com/u/Laura_BIMChick)\
**Post date:** [June 26, 2025, 7:03am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945/5 "2025-06-26T07:03:18Z")

</div>

I’m talking about the model elements  
In this view, I’ve selected multiple, but they are not highlighted as selected…

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a3a575dc0e525ce47597214d833281b146481ac.jpeg)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 26, 2025, 7:07am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945/6 "2025-06-26T07:07:56Z")

</div>

Hi @Laura_BIMChick if i understand you want keep the selection as here ? not 100 sure  
 ![Revit_X1g464O0GI](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/9/f990ab0afaae18683270a91bfd6be85dab8e4004.gif)

---

<div class="post-metadata">

**Author:** ![Laura\_BIMChick](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@Laura\_BIMChick](https://forum.dynamobim.com/u/Laura_BIMChick)\
**Post date:** [June 26, 2025, 7:12am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945/7 "2025-06-26T07:12:48Z")

</div>

Whilst selecting, I want to have the selected elements highlighted (before clicking esc), just like in the solution from @c.poupin

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/f/0fecead5a4f53adedc6a0ce0cfec319fd7e81bce.png)

Similar to this:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/6/a6510a3011afbcca5c09eedf97e9c79e430732a9.jpeg)

---

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [June 26, 2025, 8:11am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945/8 "2025-06-26T08:11:09Z")

</div>

> [@Laura\_BIMChick](#):
>
> (This was a solution from 4 years ago, so maybe there was a change in the API?)

Hi,

no there have been no changes to the API in this code, can you provide an example rvt file where this is a problem ?

---

<div class="post-metadata">

**Author:** ![Laura\_BIMChick](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@Laura\_BIMChick](https://forum.dynamobim.com/u/Laura_BIMChick)\
**Post date:** [June 26, 2025, 8:12am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945/9 "2025-06-26T08:12:57Z")

</div>

Well, that’s kind of an issue, I’m not allowed to share our company families/templates/models…  
But let me try on a sample file

---

<div class="post-metadata">

**Author:** ![Laura\_BIMChick](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@Laura\_BIMChick](https://forum.dynamobim.com/u/Laura_BIMChick)\
**Post date:** [June 26, 2025, 8:19am UTC](https://forum.dynamobim.com/t/select-multiple-elements-that-stay-highlighted/110945/10 "2025-06-26T08:19:17Z")

</div>

Okay, so this is weird. When trying it on a Revit sample file (within the same Revit session), the highlights do show up…  
I’m baffled as to why it does not work on my own file…
