Thanks curtvprice for the nugget of information, please can you help me with this
Please can you kindly help with this script also; i am trying to do a search through my attribute table, for a field called TDP_Status and if the attribute is GENERATED, I want the arcpy script to print TDP ALREADY GENERATED and stop the process else it should continue with the buffer analysis.
Please [post=224499]use [noparse] blocks[/noparse][/post] in your posts - it really helps.
No need for a cursor - the GetCount tool is very helpful here.
arcpy.MakeFeatureLayer_management("Parcels", "tLyr", '"TDP_Status" = \'GENERATED\'')
count = int(arcpy.GetCount_management("tLyr").getOutput(0))
if count == 0:
arcpy.AddMessage("TDP already generated")
else:
arcpy.Buffer_analysis("Parcels", "ClipFeature", "12.5 meters", "FULL", "ROUND", "LIST")