Bogue
| Numéro d’ID de bogue | BUG-000135234 |
|---|---|
| Envoi | November 6, 2020 |
| Dernière modification | October 7, 2024 |
| S’applique à | ArcGIS Pro |
| Version trouvée | 2.6.1 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 10.0 64 Bit |
| Statut | Non-Reproducible |
Options:
Example for option 1:
import arcpy
arcpy.management.MakeFeatureLayer(r"C:\Users\Desktop\Shapefile\Arcpy\esri\Testing.gdb\Polygons","Testl")
arcpy.management.SelectLayerByAttribute("Testl", "SUBSET_SELECTION", "LANDAREACODE = '021'", None)
print(arcpy.management.GetCount("Testl"))
Example for option 2:
import arcpy
import os
aprx = arcpy.mp.ArcGISProject(r"C:\ArcPy\ArcPy.aprx")
maps = aprx.listMaps()[0]
Polygon = maps.listLayers()[0]
print(Polygon)
arcpy.management.SelectLayerByAttribute(Polygon, "SUBSET_SELECTION", "LANDAREACODE = '021'", None)
print(arcpy.management.GetCount(Polygon))
Example for option 3:
import arcpy
arcpy.env.workspace = r"C:\Users\Desktop\Shapefile\Arcpy\esri\Testing.gdb"
a=arcpy.management.SelectLayerByAttribute("Polygons", "SUBSET_SELECTION", "LANDAREACODE = '021'", None)
print(arcpy.management.GetCount(a))
ID de bogue: BUG-000135234
Logiciel:
Obtenir de l’aide auprès des experts ArcGIS
Télécharger l’application Esri Support