laptop and a wrench

Bogue

Documentation located at http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000036000000.htm displays incorrect usage in DeleteFeatures example 2 (stand-alone script) for ArcPy GetCount_management tool in conditional if statement. Please correct documentation.

Dernière publication: August 25, 2014 ArcGIS for Desktop
Numéro d’ID de bogue NIM066477
EnvoiMarch 24, 2011
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.0
Système d’exploitationWindows OS
Version du système d’exploitationXP
Version de correction10.1
StatutFixed

Solution de contournement

Use the int() function and getOutput method to cast the ArcPy.GetCount_management result object to unicode text and then to an integer.Example:result = arcpy.GetCount_management(tempLayer)if int(result.GetOutput(0)) > 0:

Étapes pour reproduire

ID de bogue: NIM066477

Logiciel:

  • ArcGIS for Desktop

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement