Structural Rebar Tags need to align Align

This might work for you as long as you only have tags (added some error handling to inform when you selected a non-tag element)

########################################
############## Properties ##############
########################################
__author__ = 'Jacob Small'
__version__ = '0.1.0'
__description__ = """Gets the location of tag heads."""
__RevitBuilds__ = "2023.1"
__DynamoBuilds__ = "2.16"
__ReleaseNotes__ = """-"""
__Dependancies__ = "-"
__Copyright__ = "2024, Autodesk Inc"
__License__ = """MIT"""



########################################
### Configure the Python environment ###
########################################
### standard imports ###
import sys #add the sys class to the Python environment so we can work with the sys objects
import clr #add the CLR (common language runtime) class to the Python environment so we can work with .net libraries

### Dynamo Revit imports ###
clr.AddReference("RevitNodes") #add Dynamo's Revit nodes library to the clr
import Revit #import Dynamo's Revit node class
clr.ImportExtensions(Revit.Elements) #add the element conversion methods to the CLR
clr.ImportExtensions(Revit.GeometryConversion) #add the geometry conversion methods to the CLR

### Revit API imports ###
clr.AddReference("RevitAPI") #add the Revit API to the CLR
import Autodesk #add the Autodesk class to the Python environment 
from Autodesk.Revit.DB import * #import every class of the Revit API to the Python environment



results = [] #list to hold the results
elems = UnwrapElement(IN[0]) #import the elements from IN[0] of the Dynamo environment and convert to native Revit elements
if not elems.__class__ == [].__class__ : elems = [elems] #ensure that elems is a list, not an individual object, so that we can always prepare for a loop
for elem in elems: #iterate over the list of elements
    if not hasattr(elem,"TagHeadPosition"): results.append("element is not a valid tag type") #inform the user if the element isn't a valid tag
    else: results.append(elem.TagHeadPosition.ToPoint()) #otherwise get the location point
OUT = results #return the results to the Dynamo list