I have 3 Feature Classes in a gdb. I want to create a script tool to rename each Featureclass and get each newname as parameter so we just have to type the newname we want. The original name has to appear in the tool (see image below). Is there a way to have this for each featureclass?
This how it looks for one feature class when opening the tool, but I want each feature class to appear here as rename parameter.
Here is the script I'm trying to create but it might be impossible. Do you have any idea of how I could manage to do that?
# Import arcpy module import arcpy, sys, string, os # Set Geoprocessing environments workspace=arcpy.env.workspace = "D:\\PATH to GDB" # Script arguments name1 = arcpy.GetParameterAsText(0) name2 = arcpy.GetParameterAsText(1) name3 = arcpy.GetParameterAsText(2) # Local variables: Data_type = "FeatureClass" # Process: Rename fcs=arcpy.ListFeatureClasses("*","All") for fc in fcs: arcpy.Rename_management(fc, name1???, Data_type)