if int(gp.GetCount_management(featureLayer).getoutput(0)) > 0: do this else: do that
if int(gp.GetCount_management(gp.describe(featureLayer).catalogpath).getoutput(0)) > int(gp.GetCount_management(featureLayer).getoutput(0)): do this else: do that
selectedOidList = [int(oid) for oid in gp.describe(featureLayer).fidset.split(";")]
result = gp.GetCount_management(featureLayer) count = int(result)
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.