Tag.ByElementAndOffset Leader not centered or not vertical

Hello Community,
I am trying to use Tag.ByElementAndOffset to auto-tag certain elements in certain views. However, some of the tags are not centered which results in non-vertical tag leader lines.


I don’t know what caused this to happen. Could you give some recommendations to fix this?
Thanks,
Ray

Try editing your tag family so the text label box is centred over the intersection of the reference planes

2 Likes

Hey Mike,
That fixed 90% of them! Thank you!
My next question is about the behavior of tags. I’ve verified that some tags work perfectly, while others are way off, despite being from the same family. What could be causing this discrepancy? I’ve attached a screenshot for reference.

Without having the tag family available to review, I would guess that the text labels are using visibility by type parameters to turn visibility on / off.
The ones which are still causing issues the label is not aligned at the intersection and hidden when you edit?