tagging elements that are in a linked model

tagging elements that are in a linked model

sobon.konrad
Advocate Advocate
886 Views
1 Reply
Message 1 of 2

tagging elements that are in a linked model

sobon.konrad
Advocate
Advocate

I am not sure that this is not possible but at the moment I am getting errors that state that "element doesnt exist in the current document". That of course makes sense since I am trying to create an independant tag for the elements that are in the linked document. When I try calling that same method using a linked doc instead I get that View doesnt exist. Again that makes perfect sense too. Is there a way to achieve this. UI TagAll method allows for tagging elements in a linked model. Can that be done with API? Below is a small snippet from my Python based code. I am trying to execute an independant tag method here. Any advise? 

 

else:
				for i, j in zip(elements, locationPts):
					location = toRvtPoint(j)
					tag = doc.Create.NewTag(views, i, False, TagMode.TM_ADDBY_CATEGORY, TagOrientation.Horizontal, location)
					tag.ChangeTypeId(tagTypeId)
					tags.append(tag)
Accepted solutions (1)
887 Views
1 Reply
Reply (1)
Message 2 of 2

Aaron.Lu
Autodesk
Autodesk
Accepted solution
Dear Konrad, this is a known issue,

http://forums.autodesk.com/t5/revit-api/tagging-floors-from-linked-file/td-p/5084798

and we've logged a change request already: REVIT-40785 NewTag API does not create tags for linked file elements

Sorry for the inconvenience, hope we can get it fixed ASAP


Aaron Lu
Developer Technical Services
Autodesk Developer Network
0 Likes