Update Polygon attribute with Intersecting Annotation Value

Discussion created by KCressy on Apr 19, 2011
Latest reply on Apr 21, 2011 by jskinner-esristaff

I am trying to run a script that will update polygon features if they are intersected by a annotation feature.

Here is what I have so far - but no success as yet....can anyone help?

import arcpy
Annotation = "C:\\ScratchWS.gdb\\Dataset\\Annotation"
PolygonFC = "C:\\ScratchWS.gdb\\Dataset\\Polygon"

annoCursor = arcpy.SearchCursor(Annotation)
for annoRow in annoCursor:
[INDENT]annoShape = annoRow.Shape
centrepoint = annoShape.centroid   
print centrepoint
polyCursor = arcpy.UpdateCursor(PolygonFC)
for polyRow in polyCursor:[/INDENT]
        [INDENT][INDENT]if polyRow.contains(centrepoint):[/INDENT][/INDENT]
            [INDENT][INDENT][INDENT]polyRow.Parcel_ID = annoRow.Parcel_ID