# Springs collect.CurrentSelection

**URL:** <https://forum.dynamobim.com/t/springs-collect-currentselection/89806>\
**Category:** Dynamo Player\
**Tags:** revit, python, dynamo\
**Created:** [May 19, 2023, 9:32am UTC](https://forum.dynamobim.com/t/springs-collect-currentselection/89806 "2023-05-19T09:32:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miguel.bc.silvestre](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@miguel.bc.silvestre](https://forum.dynamobim.com/u/miguel.bc.silvestre)\
**Post date:** [May 19, 2023, 9:32am UTC](https://forum.dynamobim.com/t/springs-collect-currentselection/89806/1 "2023-05-19T09:32:16Z")

</div>

Hello,  
I have a problem.

I want to hide all elements selected in all views so I can hide all of these imported wall tags at once and don’t have to do “hide by category” on all of these tags in all views.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/6/1665d71baecb0737f29b4a5638666c0edabe6c7e.png)

But when I run the node CurrentSelection from the Springs package on the selected wall tags, it does not capture them (outputs empty list).

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/7/d756004966fcc11f803ce1a10734a0c5e83fb280.png)

if I run the following dynamo nodes, where I get all wall tags in the project, I get nothing

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

But when I select one in Revit and do “hide by category”, it works, it hides all wall tags in view.

Why does this select these tags?

Can someone give me a solution?

Is there another node that can select this type of linked model, or is there any Python code that can make this happen?

thanks for reading

---

<div class="post-metadata">

**Author:** ![Andriy](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Andriy](https://forum.dynamobim.com/u/Andriy)\
**Post date:** [May 19, 2023, 10:05am UTC](https://forum.dynamobim.com/t/springs-collect-currentselection/89806/2 "2023-05-19T10:05:06Z")

</div>

Hi! It seems like you want to select room tags from linked model. I believe that Springs node Collect.Current selection doesn’t work with linked elements.

I think the best solution for you is to use LinkedElement.OfCategory from bimorph nodes package

---

<div class="post-metadata">

**Author:** ![miguel.bc.silvestre](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@miguel.bc.silvestre](https://forum.dynamobim.com/u/miguel.bc.silvestre)\
**Post date:** [May 20, 2023, 11:44am UTC](https://forum.dynamobim.com/t/springs-collect-currentselection/89806/3 "2023-05-20T11:44:37Z")

</div>

Thanks for the answer, it really helps.  
But i wonder if is there a way to get the selected linked tags with python  
Does anyone know how to do this?
