I select a Column tag and dynamo returns null value. So how can we select Tags?
Thank you!
Try this node from the rhythm package
Or the OOTB has a slight alternative to this called
“Select Model Elements”
Try that as well.
1 Like
There is only this node in Rhythm Package. I did not find out where the “Pick Model Element node” is.
What version of Revit is this?
Revit 2022.1
There should be a “Select Model Elements” node, can you try that?
1 Like
In older builds of Revit there were issues with the tag selection due to the wrapper not supporting them. Test upgrading the project to 2023 or 2024 and see fi the behavior changes, as that will confirm the issue and then we can look into ways we can fix it.
2 Likes
This one works…
And here’s the python code I found somewhere in this forum.
CTTO
import clr
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.AddReference("RevitAPIUI")
from Autodesk.Revit.UI import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument
#offer the user the selection
elementReferences = uidoc.Selection.PickObjects(Selection.ObjectType.Element, 'Pick model elements')
#our list to append selection results to
elements = []
#obtain the elements via the id
for i in elementReferences:
try:
elements.append(doc.GetElement(i.ElementId))
except:
elements.append([])
OUT = elements
1 Like
thank you!