Greetings:Well, I've been trying to get this to work. I got my code to run without error. However, nothing shows up in the TOC. I added an arcpy.RefreshTOC() statement, but that didn't change the result. I decided to make a model and dump the code to python.# ---------------------------------------------------------------------------
# makeRaster.py
# Created on: 2011-03-07 15:34:04.00000
# (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
# Local variables:
layer_jpg = "C:\\tmp\\layer.jpg"
MakeRas_jpg2 = "MakeRas_jpg2"
# Process: Make Raster Layer
arcpy.MakeRasterLayer_management(layer_jpg, MakeRas_jpg2, "", "-0.5 -13868.5 13765.5 0.5", "")
The model worked and added the "MakeRas_jpg2" layer to the TOC. Running it as a python script, it runs to completion successfully, but doesn't add the new layer to the TOC. Same result if I add the "Refresh" command.What am I missing?Thanks,Scott