# Element.IsTagged 'RoomTag' object has no attribute 'TaggedLocalElementId'

**URL:** <https://forum.dynamobim.com/t/element-istagged-roomtag-object-has-no-attribute-taggedlocalelementid/53878>\
**Category:** Uncategorized\
**Created:** [August 9, 2020, 9:34pm UTC](https://forum.dynamobim.com/t/element-istagged-roomtag-object-has-no-attribute-taggedlocalelementid/53878 "2020-08-09T21:34:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [August 9, 2020, 9:34pm UTC](https://forum.dynamobim.com/t/element-istagged-roomtag-object-has-no-attribute-taggedlocalelementid/53878/1 "2020-08-09T21:34:44Z")

</div>

Hi, this script was working really well to tag things that wernt tag. However now I’ve started to get this issue below. I pulled the guys of the node out to show the error. Any suggestions? 🤔 🙂

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/9/2977b4fd4e86720381ef971de1f1364dc82cd032.png)

---

<div class="post-metadata">

**Author:** ![CVestesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cvestesen/32/56704_2.png) [@CVestesen](https://forum.dynamobim.com/u/CVestesen)\
**Post date:** [August 10, 2020, 5:41am UTC](https://forum.dynamobim.com/t/element-istagged-roomtag-object-has-no-attribute-taggedlocalelementid/53878/2 "2020-08-10T05:41:07Z")

</div>

Can you take a screenshot of the python code too?

Hard to solve without that 🙂

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [August 10, 2020, 5:59am UTC](https://forum.dynamobim.com/t/element-istagged-roomtag-object-has-no-attribute-taggedlocalelementid/53878/3 "2020-08-10T05:59:48Z")

</div>

I ended up just deleting the room tags and tagging from scratch to get around it. The codes below if your interested 🙂

If your keen on a python challenge some help with this would be awesome! 🤣

> [@Place or change a family in a background document python combine nodes](https://forum.dynamobim.com/t/place-or-change-a-family-in-a-background-document-python-combine-nodes/53682):
>
> Hi. I’m trying to change or place a title block family in multiple background documents. Trying to combine a couple of nodes together to do it. Would anyone be able to complete it or is it much more complex? All Elements of Types in Document with FamilyInstance.SetType can get the last instance to set import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import \* clr.AddReference("RevitNodes") import Revit clr.ImportExtensions(Revit.Elements) clr.AddReference("RevitService…

```
#python nodes in dynamo 1.0
#proposed by Julien Benoit @jbenoit44 
#http://aecuandme.wordpress.com/
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import ToDSType(bool) extension method
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
# Import geometry conversion extension methods
clr.ImportExtensions(Revit.GeometryConversion)
# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
from System.Collections.Generic import *
# Import RevitAPI
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

elt = []
for i in IN[0]:
	elt.append(UnwrapElement(i))

ids, tags = [], []

# Start Transaction
#TransactionManager.Instance.EnsureInTransaction(doc)

for i in elt:
	if i.TaggedLocalElementId.IntegerValue != -1:
		ids.append(i.TaggedLocalElementId)
		tags.append(i)
	else:
		continue
		

# End Transaction
#TransactionManager.Instance.TransactionTaskDone()

OUT = ids, tags

```

---

<div class="post-metadata">

**Author:** ![d.kuurman](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@d.kuurman](https://forum.dynamobim.com/u/d.kuurman)\
**Post date:** [August 10, 2020, 7:16am UTC](https://forum.dynamobim.com/t/element-istagged-roomtag-object-has-no-attribute-taggedlocalelementid/53878/4 "2020-08-10T07:16:00Z")

</div>

On line 40 of the script, the element you’re calling `.TaggedLocalElementId` on doesn’t have that property. This is because it’s a roomtag which doesn’t have this property. Read the description of the revit api (link below) for more information.

[https://www.revitapidocs.com/2020/e52073e2-9d98-6fb5-eb43-288cf9ed2e28.htm](https://www.revitapidocs.com/2020/e52073e2-9d98-6fb5-eb43-288cf9ed2e28.htm)
