Select to view content in your preferred language

MapsurroundElement (arcpy.mapping)

3454
3
06-20-2015 05:38 PM
ADREETATHAKUR
Emerging Contributor

Hello,

I am looking for a way to reposition texts on a layout page and automate some of the map surrounding placement process.

Is it possible to adjust placement of elements on the page layout using arcpy.mapping?

Thank you

Adreeta

Tags (3)
0 Kudos
3 Replies
XanderBakker
Esri Esteemed Contributor

Yes that is possible by changing the elementPositionX and elementPositionY properties of the MapsurroundElement. See this help topic: MapsurroundElement—Help | ArcGIS for Desktop

I also recommend you to read the Guidelines for arcpy.mapping—Help | ArcGIS for Desktop

ADREETATHAKUR
Emerging Contributor

Thank you for the links.  Just another quick question: I need to reposition texts in relation to other elements on the map surround. As an example say I want to reposition my legend 20mm from the dataframe and other texts below the legend should be vertically distributed. Can this kind of repositioning be done with arcpy.mapping?

Thanks

Adreeta

0 Kudos
WesMiller
Deactivated User

The help MapsurroundElement—Help | ArcGIS for Desktopxander_bakkergave has element X and element Y and element width all in page units it sounds like simple math from here