4

Does anyone know if there is a way to create a new empty dataframe in ArcMap 10.1 using Arcpy?

1 Answer 1

3

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:

2
  • 1
    This 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!
    – dklassen
    Commented Aug 22, 2012 at 17:07
  • 1
    One 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.