Get and set MXD layout size and orientation in ArcPy

326
1
05-17-2011 12:18 PM
Status: Closed
Labels (1)
TannerSemerad1
New Contributor II
I need to be able to get and set the MapDocument page size and orientation in ArcPy. Currently, it is impossible for arcpy to know whether the layout elements of any given MapDocument are on or off the layout. I want to be able to adjust the position of layout elements to fit on a page, as well as be able to change the page size or orientation in relation to the currently chosen Data Driven Page.
1 Comment
JeffBarrette
Status changed to: Closed

Setting the page size in arcpy.mapping (for ArcMap layouts) will not be implemented.  It is implemented as part of arcpy.mp in ArcGIS Pro.  The Layout Object has a pageUnits, pageHeight, and pageWidth properties.

https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/layout-class.htm

Jeff - Layout and arcpy.mp teams