Align tag with element

Hi,

Is it possible to rotate a tag parallel to an element in Revit?
I have a script that tags the elements, that works great, but I really need to text to run parallel to the item in question (Walls and Ducts)
This is what I have so far:

Any help would be appreciated!

Edit yours Family Tags and check the property “Rotate with Component” and reload in project

Thanks c.poupin,

I figured that out shortly after I posted, but it’s not working for all families though, such as structural foundations, they still remain horizontal?

for some labels it is actually not possible.
an alternative is to add a rotation occurrence parameter to the label in the family

1 Like

Thanks a lot, appreciate it!