Get and set layout element anchor points in ArcPy

970
5
05-17-2011 12:13 PM
Status: Open
Labels (1)
TannerSemerad1
New Contributor II
I need to be able to get and set the anchor points of layout elements in ArcPy. Currently, it is impossible for arcpy to know whether the layout elements of any given MapDocument are on or off the layout. You can access the XY positions of the elements, but these are in relation to their anchor point which could be different for each element. This would be very helpful for map automation scripts, as I currently have to make separate versions of my scripts for MXDs that have slightly different layout elements or page sizes.

5 Comments
ShannonDeArmond

Agreed. If I could even read which anchor point the layout item was using, even if I couldn't change it, that would be tremendously helpful.

HeshamOthman1

Hi,

Any update on this? did you find a solution? i'm facing the same issue

GrantHaynes

This would be very helpful, right now I have to validate the anchor point positions by hand which kind of defeats the purpose of automating with python

KennethEggering1

Completely agree with other commenters here, and here. This would make automation in Pro/Map tremendously easier. ESRI, can you please add an "elementAnchor" property to the different layout elements.

ArcGIS_ElementAnchorPropertyNeeded.jpg

RossVolkwein1

+1 for this idea