dverbyla

script tool geoprocessing output NOT displayed to arcmap

Discussion created by dverbyla on Feb 18, 2011
Latest reply on Feb 27, 2011 by Mhoganesri-ireland-ie-esridist
Is there a simpler workaround instead of arcpy.mapping modules to get the output from geoprocessing to display to arcmap when running a script tool?  I am in arcmap with geoprocessing option checked on to add geoprocessing results to display...which it does in the Python window, but not using a script tool..
For example:
import arcpy
inFC = arcpy.GetParameterAsText(0)
arcpy.MakeFeatureLayer_management(inFC,"Test_Layer")
works, but does not return a "Test_Layer" to the data frame or table of contents.

running in the Python window, it works fine:
import arcpy
inFC = r'c:\test\Points.shp'
arcpy.MakeFeatureLayer_management(inFC,"Test_Layer")

Outcomes