I have used the following codes to delete the selected features:
if int(arcpy.GetCount_management(layer).getOutput(0)) > 0:
arcpy.DeleteFeatures_management(layer)
I have two questions1- What if I want to deleted unselected features? Can I use the following syntax?
if int(arcpy.GetCount_management(layer).getOutput(0)) = 0:
arcpy.DeleteFeatures_management(layer)
2- I don't want to delete the features. I only want to hide them. What syntax should I use instead of
arcpy.DeleteFeatures_management(layer)
3- How about if I want to show them again. What syntax must be used?I will appreciate if anybody help me. Best RegardsBabak