1/ are all the rasters in the same directory? YES 2/ where do you want to store the output files? In another directory. 3/ how do you want to name the output files? Same as raster file. >>> #import libraries ... import arcpy ... from arcpy import env ... #set environments ... arcpy.env.workspace = r"C:\GIS\Projekti\Divaca_Ber_10ocen_met9\Testno\script" ... outworkspace = r"C:\GIS\Projekti\Divaca_Ber_10ocen_met9\Testno\script\point" ... #create list ... rasterlist = arcpy.ListRasters("*") ... #loop thru list ... for raster in rasterlist: ... arcpy.RasterToPoint_conversion(rasterlist, outworkspace + "//" + str(raster) + "_point", "VALUE") ... #this confirms you are looking at the VALUE field of the raster, and calling the output file the same name as the raster, appended by _point. ... del outworkspace, raster, rasterlist ... Runtime error <type 'exceptions.RuntimeError'>: Object: Error in executing tool >>> This is the result. Is my path to folder correct (marked in red)?
... View more