Data Driven Pages (DDP) uses one index layer to drive extents. If your two data frames on each page have different extents then I don't think you can do this with only DDP.
If both of your data frames have the same extent (but display different layers) you could do this. See the following help topic:
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Customizing_your_map_extent/00s9000000...
...
Jeff
YES! Thank you. Simple solution.
I'm currently working with a customer on this exact issue. They have 320 map sheets. Each sheet can have anywhere from 0 to 6 inset maps. In addition to the insets, they also have 3 tabular reports. Depending on the size and shape of the primary map, all the other items (insets and reports) get placed at different locations. The solution we are building is to store all the page layout info (x,y, width, height, extent, etc) of each element in a table. As we iterate through each map sheet, the appropriate info is read and the appropriate items are positioned.
This application will be posted to the Resource Center when complete. We just started so it will take some time.
Jeff
Hi Jeff, I was hoping to use this multiple frame script for my own mapping. I wanted to have different rotation and scale as well for various data frames. Unfortunately my modified script doesn't seem to be working (I'm pretty new to Python). I've posted the question here: https://community.esri.com/thread/255106-customizing-multiple-element-layout-manager
Hopefully you could take a look at it? Thanks very much!
I'm currently working with a customer on this exact issue. They have 320 map sheets. Each sheet can have anywhere from 0 to 6 inset maps. In addition to the insets, they also have 3 tabular reports. Depending on the size and shape of the primary map, all the other items (insets and reports) get placed at different locations. The solution we are building is to store all the page layout info (x,y, width, height, extent, etc) of each element in a table. As we iterate through each map sheet, the appropriate info is read and the appropriate items are positioned.
This application will be posted to the Resource Center when complete. We just started so it will take some time.
Jeff
mxd = arcpy.mapping.MapDocument("MXD_PATH") frames = arcpy.mapping.ListDataFrames(mxd) for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1): mxd.dataDrivenPages.currentPageID = pageNum #Sets the rotation angle of the dependant data frame to the data frame with the DDP index layer, assuming it is first in the TOC frames[1].rotation = frames[0].rotation arcpy.mapping.ExportToPDF(mxd, "DOC_NAME"+ str(pageNum) + '.pdf') del mxd
So I have a DDP mxd with two data frames, one with vector data and the other with imagery and a raster with transparency. I have set the imagery extent to the vector data frame, this works great except when my DDP has rotation angles, the the imagery dataframe does not rotate with the vector data frame. If ESRI could only get the PDF transparency export issue figured out....
mxd = arcpy.mapping.MapDocument("MXD_PATH") frames = arcpy.mapping.ListDataFrames(mxd) for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1): mxd.dataDrivenPages.currentPageID = pageNum ## Sets the rotation angle of the ## dependant data frame to the data ## frame with the DDP index layer, ## assuming it is first in the TOC frames[1].rotation = frames[0].rotation arcpy.mapping.ExportToPDF(mxd, "DOC_NAME"+ str(pageNum) + '.pdf') del mxd