I am using ArcPy to export PDFs from my ArcGIS Server application. I want to move a TextElement in my layout view to the centroid of a selected feature. I can get the centroid of the feature, but that's in my projected coordinate system (PCS). I need to convert that point into inches in my layout view.
elements = arcpy.mapping.ListLayoutElements(mapDoc, "TEXT_ELEMENT")
for elem in elements:
if elem.name == "SiteText":
elem.elementPositionX = center.X
elem.elementPositionY = center.Y
center.X
and center.Y
are in a projected coordinate system (PCS), not inches. I know it can be done with ArcObjects, as I've done it in desktop addins using C#. I need to do it from ArcPy and I don't see how. Any ideas?