Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Suppressing Messages from arcpy.FeatureClassToShapefile_conversion

$
0
0
I am using the command

Code:

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.

Code:

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?

Viewing all articles
Browse latest Browse all 2485

Trending Articles