Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add a 2nd data frame to an existing "*.mxd" file. Right now, i see option to add layers and edit properties of "CURRENT" data frame but could not figure out how to add a new one and export outputs from 1st frame to 2nd one. Any suggestions?

share|improve this question

The limits of arcpy.mapping are described in the documentation as:

"The arcpy.mapping module was designed so that it can be used to modify existing elements within already existing map documents (.mxd) or layer files (.lyr). In other words, it helps with the automation of existing features but it can't be used to author new objects. It was not designed to be a complete replacement for ArcObjects or an attempt at creating a function, method, or property for every conceivable button, dialog box, menu choice, or context item in the ArcMap interface (that is what ArcObjects provides). You must carefully author a map document or layer file using ArcMap ahead of time with all the appropriate elements and then use arcpy.mapping to manipulate its contents."

Unfortunately, you are trying to author a new DataFrame object which falls outside of what arcpy.mapping is designed to do.

share|improve this answer
Thanks. Yeah i came across this documented limitation and was wondering if anyone has any workaround about it. – Ibe Sep 28 '12 at 5:52
The only workaround would be a fudge of having the second data frame (it can be empty) already in the MXD but located off the page, from where its X,Y position can be updated to move it on. – PolyGeo Sep 28 '12 at 7:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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