I want one output of a pyt to appear in the Table of Contents, but not the second o/p

344
1
04-04-2014 06:51 AM
ChrisJohnson5
New Contributor
Hi,

I have a pyt which outputs a shapefile and a csv file, I want the shapefile output to be displayed when the processing finishes, but don't want the csv file to be added to the Table of Contents in ArcGIS.  Is there any way to tell arcpy to add one output to the Table of Contents but not the other ?

Chris
Tags (2)
0 Kudos
1 Reply
BruceBacia
Occasional Contributor
To add a shapefile to an mxd, you first need to convert it to a layer, and then add it.  Below is a stack exchange thread that deals with this.  As far as the csv, just don't add it!
:cool:

http://gis.stackexchange.com/questions/26042/how-to-programmatically-add-shapefile-to-data-frame-in-...
0 Kudos