Hi: I have a script that calculates the total and average population using the attribute layer of the county and returns the output on the interactive window in PythonWin. I made a tool from the script and it runs fine in ArcGIS. But don't know how to display the calculated result in some from of text message within ArcGIS interface. Please Help!!
Thanks a lot. It works, but how do you display only the result. Example: Arcpy.AddMessage('The value is...: %.2f' % value) display the result along with other messages (start time, elapsed time, etc). Can you just display the result?
Arcpy.AddMessage() just prints the string between the (). The given example uses formatted text to make it pretty. If you only want the string in a variable called value, it would be Arcpy.AddMessage(value).