import arcpy # Set input and output FGDBs inFGDB = "in.gdb" outFGDB = "out.gdb" # Loop through inFGDB arcpy.env.workspace = inFGDB for fc in arcpy.arcpy.ListFeatureClasses(): # Describe to get type dscFC = arcpy.Describe(fc) fcType = dscFC.shapeType print(fcType) # Don't get line fcs if not fcType == "Polyline": # Copy fc to outFGDB print("Copy "+inFGDB+"/"+fc+" to "+outFGDB+"/"+fc+" -- "+fcType+"\n") arcpy.Copy_management(inFGDB+"/"+fc, outFGDB+"/"+fc)