Good afternoon,
I'm working on a custom button using the Python GUI and perhaps add-in manager in 10.1 to calculate the area of a selected polygon and then display the result as a popup message box.
I've got several of the pieces together, using an IF loop with GetCount() to verify a record has been selected before proceeding and easygui.msgbox to report the result; however I'm struggling to figure out how to calculate the area of the selection without writing to the attribute table. I don't want to have to create a new feature class or table - I want to allow a user to interactively select a polygon, calculate the geometry on the fly, or in memory, convert the number to acres, if necessary, and use that result as the variable to report in my pop-up.
Any ideas?