The Stop tool in ModelBuilder stops iteration even when mulitple inputs do not meet the specified condition.
上次发布: August 25, 2014ArcGIS for Desktop
漏洞 ID 编号
NIM067700
已提交
April 29, 2011
上次修改时间
June 5, 2024
适用范围
ArcGIS for Desktop
找到的版本
10.1
修正版本
10.1
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
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