laptop and a wrench

Bogue

The Stop tool in ModelBuilder stops iteration even when mulitple inputs do not meet the specified condition.

Dernière publication: August 25, 2014 ArcGIS for Desktop
Numéro d’ID de bogue NIM067700
EnvoiApril 29, 2011
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.1
Version de correction10.1
StatutFixed

Solution de contournement

1. Add a MultiValue String Variable to the model.2. Set the inputs to the MultiValue variable equal to inline variables from the Boolean variables that are to be evaluated.3. Use the Calculate Value Model tool to evaluate the MultiValue variable for whether all values are true, all values are false or a mixture of both. Below is an example of an expression that can be used for this: def getBool(multiValue): boolList = multiValue.split(";") boolSet = set(boolList) if len(boolSet) == 1: return boolList[0] == "true" else: return False

Étapes pour reproduire

ID de bogue: NIM067700

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