tomneer

Suppressing Messages from arcpy.FeatureClassToShapefile_conversion

Discussion created by tomneer on Feb 11, 2013
Latest reply on Feb 12, 2013 by tomneer
I am using the command

arcpy.FeatureClassToShapefile_conversion([workspace + "/townships", workspace + "/township_points", workspace + "/section_points", workspace + "/sections"], proc_fldr)


to convert a temporary workspace out to shapefile. Unfortunately, unlike arcpy.Project_management, arcpy.CopyFeatures_management, arcpy.SelectLayerByLocation_management, and arcpy.MakeFeatureLayer_management, the arcpy.FeatureClassToShapefile_conversion sends the following back to the console.

D:/DDS/_Sites/PLSSFinder/orders/processing/20130210175117_Neer/20130210175117_Ne
er_temp.gdb/townships Successfully converted:  D:/DDS/_Sites/PLSSFinder/orders/p
rocessing/20130210175117_Neer\townships.shp
D:/DDS/_Sites/PLSSFinder/orders/processing/20130210175117_Neer/20130210175117_Ne
er_temp.gdb/townships Successfully converted:  D:/DDS/_Sites/PLSSFinder/orders/p
rocessing/20130210175117_Neer\townships_1.shp
D:/DDS/_Sites/PLSSFinder/orders/processing/20130210175117_Neer/20130210175117_Ne
er_temp.gdb/townships Successfully converted:  D:/DDS/_Sites/PLSSFinder/orders/p
rocessing/20130210175117_Neer\townships_2.shp
D:/DDS/_Sites/PLSSFinder/orders/processing/20130210175117_Neer/20130210175117_Ne
er_temp.gdb/townships Successfully converted:  D:/DDS/_Sites/PLSSFinder/orders/p
rocessing/20130210175117_Neer\townships_3.shp


All the other tools I have to use arcpy.GetMessages() to get this info. I need to suppress this as it is causing problems. I've tried trace back through the arcpy libraries but cannot locate where these messages are being generated. Any idea on how I can suppress this?

Outcomes