AnsweredAssumed Answered

ModelBuilder Adds Intermediate Variable to Map, Not Final Output Shapefile

Question asked by bonze89 on May 14, 2012
Latest reply on May 16, 2012 by geonetadmin

I have created a tool using ArcGIS ModelBuilder (v9.3) that imports an Excel worksheet, creates an XY Layer, then converts it to a shapefile. The idea is that the tool then adds the final shapefile to the map. However, it keeps adding the temporary XY Layer file to the map, rather than the final output.

Does anyone know why this might be? I've tried both setting the XY Layer as a model parameter, and leaving it as intermediate. Having it as a parameter is useful, as it then allows me to specify a file name as part of the model. Also, the model seems to think that my 'Output Data' file is a folder, despite the 'Feature Class to Shapefile' converter already having a data workspace assigned (see attached JPG). I have also attached the tool as a Python script, should that shed some light. Note that 'server location' would normally be replaced by a valid file / folder path.

Any help is greatly appreciated!