Tag Info

Hot answers tagged

4

Here's a Python solution: import arcpy arcpy.env.workspace = "C:\\Data.gdb" #change to where your data is stored fc_list = arcpy.ListFeatureClasses("Pattern_*") for fc in fc_list: new_name = fc.split("_")[-1] arcpy.Rename_management(fc, new_name) This actually alters the original name of each input feature class. It does not export a copy with ...


1

The code you require is below: import arcpy # Set workspace arcpy.env.workspace = r"C:\Scratch\fGDB_Scratch.gdb" # This returns a list of FeatureClasses in the top level of the geodatabase fcl = arcpy.ListFeatureClasses("*") # Main loop for fc in fcl: print "Adding fields to " + fc # The "#" inputs mean just use defaults ...



Only top voted, non community-wiki answers of a minimum length are eligible