Hi ALL,
Is there a way to set up Leader Type to Free End?
I’m trying to place the tag into specific location, but since the leader is Attached End, it’s a little bit off.
Any ideas? Thanks.
BTW, using this script to place leader end to specific location. But this only works properly with free end leader.
import clr
clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.DB import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
items = UnwrapElement(IN[0])
points = UnwrapElement(IN[1])
elementlist = []
TransactionManager.Instance.EnsureInTransaction(doc)
for i in items:
for p in points:
try:
i.LeaderEnd = p.ToXyz()
elementlist.append("Success")
except:
elementlist.append("fail")
TransactionManager.Instance.TransactionTaskDone()
OUT = elementlist