Select to view content in your preferred language

Python (or other) scripting that can dynamically change page size?

2035
1
07-06-2011 09:57 AM
OlwynBruce
Deactivated User
Hi there,
In the VBA/ArcObjects world, I had created an app that automatically sized the data frame and page size based on the user selection (in their case, an NTS map sheet).

I'm trying to migrate this app into the 10.0 world and can access arcpy.mapping to change the data frame size - but is there any Python (or other) solution to programmatically change the page size? Currently, I'm experimenting with this using data driven pages.

Any input welcome 😉
Cheers,
Olwyn
0 Kudos
1 Reply
JeffBarrette
Esri Regular Contributor
There is not a way to change page size at 10.0 (or 10.1). 

This is an MXD authoring step.  If you are trying to simulate a map book or some page series that have different pages sizes or page orientations you must build those templates and have your arcpy.mapping application reference the appropriate mxd.

The following help topic shows and example with facing pages.

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_map_book_with_facing_pages/...

Jeff
0 Kudos