# Collect All Elements with linked model

**URL:** <https://forum.dynamobim.com/t/collect-all-elements-with-linked-model/18245>\
**Category:** Revit\
**Created:** [January 17, 2018, 7:29pm UTC](https://forum.dynamobim.com/t/collect-all-elements-with-linked-model/18245 "2018-01-17T19:29:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JHuebsch](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@JHuebsch](https://forum.dynamobim.com/u/JHuebsch)\
**Post date:** [January 17, 2018, 7:29pm UTC](https://forum.dynamobim.com/t/collect-all-elements-with-linked-model/18245/1 "2018-01-17T19:29:37Z")

</div>

Hi Everyone,

I am trying to collect all the door tags in my project with the Categories / All Elements of Category. We have a linked model in our project. When the the link is removed the collector works when the link is in the model I get this error.

The ultimate goal would be to hide tags based on their host’s phase created. Does the All Elements of not work when having linked models in the project?

[Categories - All elements.pdf](https://forum.dynamobim.com/uploads/short-url/g6xKYrV393ilAyUFBq9BqSQViU3.pdf) (49.9 KB)

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [January 18, 2018, 4:23am UTC](https://forum.dynamobim.com/t/collect-all-elements-with-linked-model/18245/2 "2018-01-18T04:23:08Z")

</div>

There’s a known issue with tag elements in Dynamo 1.2 and up:

> <https://github.com/DynamoDS/DynamoRevit/issues/1840>

You can have a look at the ElementsInView node from springs and reuse that in a liked doc element collector

---

<div class="post-metadata">

**Author:** ![JHuebsch](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@JHuebsch](https://forum.dynamobim.com/u/JHuebsch)\
**Post date:** [January 18, 2018, 3:30pm UTC](https://forum.dynamobim.com/t/collect-all-elements-with-linked-model/18245/3 "2018-01-18T15:30:30Z")

</div>

Thank you Dimitar. I did stumble into that tread later on.

Do you know if there are any other work arounds or do we just wait for a new release?

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [January 19, 2018, 3:27am UTC](https://forum.dynamobim.com/t/collect-all-elements-with-linked-model/18245/4 "2018-01-19T03:27:45Z")

</div>

None that I can think of. However it can be a really easy fix:

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

Download a recent version of springs, take out the script node from “Springs.Collector.ElementsInView”

and add the line  
`doc = v.Document`

here:

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

I strongly suggest you hide the background preview of any nodes that return tags or text if you’re dealing with a large document. Otherwise you might stumble on another nasty bug introduced with D4R 1.3 😕

---

<div class="post-metadata">

**Author:** ![l8j9h](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@l8j9h](https://forum.dynamobim.com/u/l8j9h)\
**Post date:** [October 30, 2021, 2:57pm UTC](https://forum.dynamobim.com/t/collect-all-elements-with-linked-model/18245/5 "2021-10-30T14:57:50Z")

</div>

There is a YouTube video from BIMTAMIN

[Get All Elements from Linked Models](https://www.youtube.com/watch?v=WQsHrdbVdmQ&list=PLv3VFPsJFOZprSp3G0ViBPSUJVu51G0RK&index=11&t=30s)
