Does anyone know if there is a way to create a new empty dataframe in ArcMap 10.1 using Arcpy?
1 Answer
In general, map layout elements cannot be created in arcpy -- they must be pre-authored, after which you can use arcpy.mapping to move them, resize them, set properties, etc.
In 10.1 they added cloning for text and graphic elements, but this does not apply to data frames, so it must be pre-authored.
For more info see:
-
1This is what i thought, but I was hoping someone had some more insight on a workaround or something I had missed in the data model. Thanks!– dklassenCommented Aug 22, 2012 at 17:07
-
1One neat technique I saw at the Esri conference was pre-authoring as many data frames as you may ever need OUTSIDE of the page space, and then simply moving them back ONTO the page space as needed. Commented Aug 22, 2012 at 19:19