Hi All,
Does anyone know of a node that sets the Room Tag elbow position or have some python code to help me create a custom node to do the job.
I am using Rythms Tags.SetLeaderElbowPosition node (thats great) but it doesn’t work for Room Tags:
Any help would be much appreciated.
Thanks in advance
Update: I am now trying to create a node that will work with the SpatialElementTag Class (Room tags) but am struggling with setting the LeaderElbow property. Would anyone be able to point me in the correct direction:
This should do it. Or at the very least offer some ideas.
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
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument
#function to set LeaderElbow for spatial element tags. Would probably work for regular tags, too.
def SetSpatialTagElbow(spatialTag,point):
TransactionManager.Instance.EnsureInTransaction(doc)
This file has been truncated. show original
In my screenshot below I just set them both to 0,0 for testing.
1 Like
Thanks john_pierson, this is great. I will report back when I have something up and running.
Edit: Works great, thanks a mill.