Convert point XY to layout paper space?

326
1
Jump to solution
03-09-2012 06:18 AM
ShawnHolyoak
Occasional Contributor
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.  I need to convert that point into inches in my layout view.  How would I go about doing that?

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, not inches.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
1 Reply
ShawnHolyoak
Occasional Contributor
0 Kudos