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)
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.