Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Hide Unselected Features

$
0
0
I have used the following codes to delete the selected features:

Code:


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?

Code:


 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

Code:

           

      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

Viewing all articles
Browse latest Browse all 2485

Trending Articles