Move Tag location in a section view to center of element

Hi all, im was trying to place tags to all the assembly elements in its detail views.
Although i managed to do it from a python script, it places the tags on the bottom of the columns and i’m not able to place the tags in the center elevation of the column nor move them (in an automatic manner i mean).

I’ve tried using setheadposition and geometrytranslate but it doesn’t move the tags on the view nor get any results whatsoever.

This is the script i’m using.

Any help would be apreciated.

If you want it centered maybe try using the Bounding box rather than location point. You may also need to adjust the tags “Attachment” parameter.

tag.LeaderEndCondition == LeaderEndCondition.Free