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?
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…
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.
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.
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
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