I need help!! I am writing a program where inside the mxd I have two layers. One layer is a shapefile and one layer is the annotation of same shapefile. The program is supposed to find missing annotation in the annotation layer. It's easy because if the annotation is missing there is no data in the attribute table. For example, the shapefile has the field TFlag that has the station id in it and the annotation has the field TFlag that is supposed to have the same id. So, I was going to write the program to look for the same station id in the annotation layer that the station layer has and when it can't find it highlight it. I have written some of the program I need to know if I'm heading in the right direction or am I way off?
import arcpy, os, sys, string arcpy.env.overwriteOutput = True fc = "K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\Traffic_Count_Data\2011_Counts\2011_Annual_Stations\Final_Annual_Stations_2012.shp" fields = ("TFLAG", "T_FLAG") Value = "TFLAG" <> "T_FLAG" where = "%s = '%s'" % (field, vlaue) dhList =  for w in ws: arcpy.env.workspace = w gdb = arcpy.ListWorkspaces ("*", "TFLAG") for fc in gdb: arcpy.env.workspace = fc