6

Is it possible to changed the legend element anchor point using ArcPy?

This is the default anchor point:

enter image description here

and i want this anchor point location:

enter image description here

I know how to changed the legend element position x,y. But if the anchor point isn't in the right place, then i will get unwanted result.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Feb 21, 2016 at 9:53
0

1 Answer 1

6

The anchor point of a legend element is not available as a property to ArcPy. Consequently, you will need to author them into a map.

There is an ArcGIS Idea to be able to Get and set layout element anchor points in ArcPy that you may want to add your vote to:

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.

However, it does not appear that will ever be implemented in ArcMap because it is Already Offered in ArcGIS Pro using Python CIM Access.

answered Feb 21, 2016 at 11:28

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.