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)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.