AnsweredAssumed Answered

arcpy: copy feature classes from sde to folder?

Question asked by jpilbeam on Mar 2, 2018
Latest reply on Mar 5, 2018 by jpilbeam

Is there a way using arcpy to grab feature classes directly from an SDE and copy to a folder?

 

I have a real chunky way to do it, namely using these functions:

arcpy.mapping.ListDataFrames()
arcpy.mapping.ListLayers()
arcpy.mapping.AddLayer()
arcpy.FeatureClassToFeatureClass_conversion()

 

The script overall adds features from an SDE to an mxd then saves them as shapefiles in a folder. How can I avoid using the mxd as a sort of springboard?

Outcomes