Hi all! I was wondering if it’s possible to get the elements tagged by a multi-leader tag in Dynamo.
When using the OTB Tag.TaggedElement, I cannot get the element of a multi-leader. I also tried to get the location of the LeaderEnd, but it’s not possible either.
I don’t think there’s an OTB node, but maybe someone knows a Package. Google gave me no luck with finding anything!
@frederickMethot ,
thats true there is just one element exposed instead of several
import sys
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *
clr.AddReference('RevitAPIUI')
from Autodesk.Revit.UI import *
clr.AddReference('System')
from System.Collections.Generic import List
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument
#Preparing input from dynamo to revit
allTags = FilteredElementCollector(doc).OfClass(IndependentTag).ToElements()
elements = []
for t in allTags:
if t.IsOrphaned != True : elements.append(t.GetTaggedLocalElement())
else: pass
OUT = allTags, elements
…hmmm i stuck here
KR
Andreas