arcpy.env.workspace = r'your\sde_gdb\here' outgdb = r'new\gdb\location' for fc in arcpy.ListFeatureClasses(): # this lists feature classes inside gdb fcname = fc + '_copy' arcpy.FeatureClassToFeatureClass_conversion(fc, outgdb, fcname)
import arcpy, os from os import path as p sde_gdb = r'your\sde_gdb\here' outgdb = r'new\gdb\location' fclist = ['Roads', 'Structures', 'Parcels', 'Hydrants'] for fc in fclist: fc_path = p.join(sde_gdb,fc) fcname = fc + '_copy' arcpy.FeatureClassToFeatureClass_conversion(fc_path, outgdb, fcname)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.