AnsweredAssumed Answered

add  one feature class to  one mxd arcpy

Question asked by TISHA1 on Aug 24, 2018
Latest reply on Aug 27, 2018 by TISHA1

Hello

 

I'm trying to create one mxd for each for layer from an existing MXD.  I have list of layers in a mxd but  I want  one mxd to one layer.  This is the script I've been using. It copies all of the layers to the new mxd.   

 

import arcpy
... mxd = arcpy.mapping.MapDocument("CURRENT")
... for df in arcpy.mapping.ListLayers(mxd):

          df.name
          mxd.saveACopy(r"C:\Project\Output\\" + df.name + ".mxd")
... del mxd

Outcomes