Intersect polygon layer with graphic and return sum of area

Discussion created by nbanerjee on Mar 7, 2011

I am trying to write a script that will allow a user to interactively draw a polygon (graphic or a feature), click a button that will intersect the polygon with another polygon layer, and then return the sum of the polygons in the intersected layer (and/or give a percent of intersected polygon layer with total interactive polygon area)

I will need to customize for my particular application, but was looking if there were scripts that do something similar or if anyone had a recommended approach.

Thanks in advance,