I have tried this code, but in the polygon to raster function, it is giving an error when using the fielditeration in the field value.
see the code below
>>> import arcpy
>>> from arcpy import env
>>> outras = "F:\\samar\\pyth_try.gdb\\outras"
>>> inpoly = "F:\\samar\\pyth_try.gdb\\nov2005"
>>>
>>> fieldlist = arcpy.ListFields(inpoly)
>>> count = 7 # to start iteration at field number 7
>>> while count < len(fieldlist):
... arcpy.PolygonToRaster_conversion(inpoly,fieldlist[count],outras,"MAXIMUM_AREA","NONE",1)
... count = count + 1
... # end of code
...
Runtime error Traceback (most recent call last): File "<string>", line 2, in <module> File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\conversion.py", line 2581, in PolygonToRaster raise e ExecuteError: ERROR 000622: Failed to execute (Polygon to Raster). Parameters are not valid. ERROR 000623: Invalid value type for parameter value_field.
# it worked when trying the code without the field list
>>> arcpy.PolygonToRaster_conversion(inpoly,"F11_10_2005",outras,"MAXIMUM_AREA","NONE",1)
<Result 'F:\\samar\\pyth_try.gdb\\outras'>
>>>