babakkasraie

Hide Unselected Features

Discussion created by babakkasraie on Jan 20, 2013
Latest reply on Feb 3, 2013 by babakkasraie
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 questions

1- 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 Regards

Babak

Outcomes