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