# Selecting Tags Associated to a Linked Model

**URL:** <https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118>\
**Category:** Revit\
**Created:** [October 31, 2017, 4:51pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118 "2017-10-31T16:51:45Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 31, 2017, 4:51pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/1 "2017-10-31T16:51:45Z")

</div>

Never seen this issue before, and apologies if it’s been covered but a search didn’t turn up anything.

I’m unable to select tags via any method which are hosted to a linked model, returning the error in the screenshot below. Any method I can think of (all elements of category, all elements of type, all elements in active view, select model elements, select model element, ID to selection, UI based element pick tools…) which results in selecting these tags causes either a null result, skips the tag, or returns the error in the screenshot below. Has anyone seen this before?

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/5/55bb15307e266f3f6a315bcf6e037cfb13199dbd.PNG)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 31, 2017, 4:57pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/2 "2017-10-31T16:57:04Z")

</div>

Try restarting your pc. Was it working before? Did you install any custom addins/packages.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 31, 2017, 4:57pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/3 "2017-10-31T16:57:46Z")

</div>

Works on everything EXCEPT the darn tags associated to the link. I’m restarting now.

---

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [October 31, 2017, 5:19pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/4 "2017-10-31T17:19:49Z")

</div>

I’m seeing the same thing and it is also causing the collector by category to fail EDIT: I meant to specify that it causes this to fail, even when I also tagged ducts in the current document, so the collector isn’t skipping over the tags associated with linked elements and still retrieving the tags associated with elements in current document, which I would have expected…

![tagged linked duct](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/4324a1d98234af9dcf43ed3a306e1908374e1f3b.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 31, 2017, 5:34pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/5 "2017-10-31T17:34:26Z")

</div>

Yeah still fails for me as well. Going to try on another simplist model to see if it is something related to the consultant model but I assume that’s not the case since @awilliams has the same issue.

---

<div class="post-metadata">

**Author:** ![MJB-online](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mjb-online/32/24884_2.png) [@MJB-online](https://forum.dynamobim.com/u/MJB-online)\
**Post date:** [October 31, 2017, 6:11pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/6 "2017-10-31T18:11:25Z")

</div>

Hi @jacob.small,

I found this topic (but i’m not sure if it is what you are looking for).  
[https://forum.dynamobim.com/t/door-tags-get-mark-value-from-linked-model/4691/2](https://forum.dynamobim.com/t/door-tags-get-mark-value-from-linked-model/4691/2)

Kind regards,  
Mark

---

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [October 31, 2017, 6:27pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/7 "2017-10-31T18:27:31Z")

</div>

> [@jacob.small](#):
>
> something related to the consultant model

When I posted above, I had 2016 and 2018 open with two separate projects with links from different consultants, both had the same results… 🤔

@MJB-online I just had a look at that posts’ solution; the Python script requires the tag elements as inputs, and it seems neither @jacob.small and I are able to select or collect tags associated with linked elements. But given that that workflow was a solution, selecting/collecting tags associated with linked elements shouldn’t be a problem or at least wasn’t in the past…

I can’t remember if this has ever been an issue on my computer before, nor when I last tried, so can’t think of any new packages or updates that might be causing this. Maybe others will chime in and test out if they are experiencing the same issue.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 31, 2017, 9:07pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/8 "2017-10-31T21:07:41Z")

</div>

I recreated the failure by creating a file with no template (none in the selection), creating 4 walls, saving and closing, and linking that project into another new file with no template, and tagging the walls.

This certainly was possible in the past (as @MJB-online pointed out), so it may be a package or a Dynamo/Revit version issue so I’m attaching data relative to what I am running. If nothing else turns up I’ll post to the github tomorrow (heading home now to lock down the candy supplies before the trick or treaters raid it all).

Windows 7  
Revit 2017.2  
Dynamo for Revit version 1.2.1.3083

Packages:

 ![Capture2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/e/aee7d19e2fd363cf033783f76d8fdf888eff4cc9.PNG)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [November 2, 2017, 10:39am UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/9 "2017-11-02T10:39:46Z")

</div>

CC: @Michael_Kirschner2

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [November 2, 2017, 12:41pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/10 "2017-11-02T12:41:03Z")

</div>

I can see this issue as well as soon as linked walls get tagged. I have been able to select those tags with a right clic (to select all instances in the view) and then by using _Get Revit Selection_ from Hot Gear, which consists basically in this script:

```
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)

clr.ImportExtensions(Revit.GeometryConversion)

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
from System.Collections.Generic import *

clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

select = []
elements = []
select = uidoc.Selection.GetElementIds()

for i in select:
		elements.append(doc.GetElement(i).ToDSType(True))

OUT = elements
```

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [November 2, 2017, 4:20pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/11 "2017-11-02T16:20:22Z")

</div>

> [@awilliams](#):
>
> selecting/collecting tags associated with linked elements shouldn’t be a problem or at least wasn’t in the past…

I’m pretty sure this used to work. At least I had it working with keynote tags a while back.  
Having the same issue with linked tags now though.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [November 2, 2017, 4:48pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/12 "2017-11-02T16:48:27Z")

</div>

> [@Nick\_Boyts](#):
>
> I’m pretty sure this used to work. At least I had it working with keynote tags a while back.
> 
> Having the same issue with linked tags now though.

It did, but clearly doesn’t now. I’m off to the Github to create a bug (assuming I can find the time before I leave).

EDIT: Ok clearly it’s easier to do stuff while everyone else is out to lunch. Github issue is here for anyone who wants to follow along.

> <https://github.com/DynamoDS/DynamoRevit/issues/1840>
>
> Posted to the dynamo forum and multiple other users confirmed the issue exists f…or them as well. See post here: //forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118
> 
> \## Dynamo version
> 
> 1.2.1
> 
> \## Revit version
> 
> 2017.2
> 
> \## Operating system
> 
> Windows 7
> 
> \## What did you do? 
> 
> Attempted multiple methods to select tags associated with elements in a linked model. All elements of category, all elements of type, elements in view, select model element, select model elements, IDs to element, and multiple UI selection methods from various packages were tried. 
> 
> \## What did you expect to see?
> 
> Selected Revit elements for use in dynamo environment. 
> 
> \## What did you see instead?
> 
> Error messages or 'null' in all cases. See attached screenshot of error and screenshot of packages installed (incase it's package related as the forum thought that may be part of the cause). 
> 
> !\[capture\](https://user-images.githubusercontent.com/29869395/32339414-17fd7170-bfce-11e7-8e85-86ece78a2fa4.PNG)
> 
> !\[capture2\](https://user-images.githubusercontent.com/29869395/32339420-1bc092ba-bfce-11e7-8a41-f56b42698e5b.PNG)

---

<div class="post-metadata">

**Author:** ![Revit\_Noob](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Revit\_Noob](https://forum.dynamobim.com/u/Revit_Noob)\
**Post date:** [September 21, 2018, 6:10am UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/13 "2018-09-21T06:10:06Z")

</div>

Sorry for resurrecting this thread, I’m also having problem with this.  
anyone found a solution yet?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 21, 2018, 10:55am UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/14 "2018-09-21T10:55:12Z")

</div>

Upgrade everything and try a newer version of the springs package.

---

<div class="post-metadata">

**Author:** ![Mattia\_Berto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mattia_berto/32/39151_2.png) [@Mattia\_Berto](https://forum.dynamobim.com/u/Mattia_Berto)\
**Post date:** [December 3, 2020, 11:26am UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/15 "2020-12-03T11:26:17Z")

</div>

Hi! having same problem with revit 2020…any news?

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [December 3, 2020, 1:11pm UTC](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/16 "2020-12-03T13:11:44Z")

</div>

Hi,

You can use the _SelectByCateOrType_ node as a workaround :

 ![linked tag](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b4360b47d50f608d12ebf207264e0b899710c80.png)
