I have some address points selected for which that I want to update the address field based upon the row in the selection. How do I figure out the name of the selection taable to pass to arcpy.UpdateCursor()?
If you're simply isolating selected features for use with an update cursor, it should be as simple as -
use gp.MakeFeatureLayer("featureclass", "featlyr") cursor = gp.UpdateCursor("featlyr", "", "", "BLDADDRESS") row = cursor.next() while row: rownum = row.getValue("OID_or_NUM") row.setValue("BLDADDRESS", rownum) cursor.updateRow(row) row = cursor.Next()
I think you can only do that from a Python Add-In.