louearly

trimming character from Output Feature Class in Feature class to feature class conver

Discussion created by louearly on Oct 11, 2012
Latest reply on Oct 11, 2012 by louearly
I am trying to use arcpy.FeatureClassToFeatureClass_conversion to move feature classes from one gdb to another. I would like to trim the first 16 characters from the feature class name.

how do i do this? this is how i have it set up with of course the ????? being where i am unsure.

# Set Workspace
env.workspace = r"Database Connections\GENERAL_DATA - PROD.sde"

# List Feature Classes
fcList = arcpy.ListFeatureClasses ("MGISP.GISONEAST*")

# Loop through each feature class
for fc in fcList:


# move features from sde to gis01
arcpy.FeatureClassToFeatureClass_conversion (fc, output_folder + "\\" + my_dir + "\\" + my_gdb, ???????? , "")

Outcomes