3

I am trying to change the order of text elements through arcpy, such as sending them to the front or to the back. I know I can change the position of text elements using arcpy, but I can't find any references to changing a map elements order in relation to other map elements?

asked Feb 11, 2016 at 1:03
1
  • desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/… There seems to be many references to element (MapsurrondElement, PictureElement, LegendElement, etc) position. You might have to store elements positions as a variable and then do math on those variables? Commented Feb 11, 2016 at 1:17

2 Answers 2

1

My understanding is that ArcPy does not have access to the order in which layout elements draw/display in ArcMap.

Consequently, I think that this is something that you would need to pre-author into the map using ArcMap, so that the order is already what you need in ArcPy.

You could submit an ArcGIS Idea to have this enhanced but, if you do, I suggest targeting ArcGIS Pro rather than ArcMap. ArcPy with ArcGIS Pro does not seem to have access to the draw/display order of layout elements either.

I suspect that the way to describe such an enhancement would be to ask for a layout property which was a list of element objects in draw/display order.

answered Feb 11, 2016 at 2:33
1
  • That is what I suspect, and I will try your approach. It's not a deal breaker for me, but I would have liked to have had that functionality. Commented Feb 11, 2016 at 16:12
0

As PolyGeo said ArcPy does not have access to the order but if thats needed you can clone text elements in desired order so in the end you can get what you seek. Not good but its working way but i don't know if thats possible for your situation.

answered Feb 17, 2017 at 14:04

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.