Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2328

Why is there no examples for "While" Iterator?

$
0
0
I've scoured the forums and the internet for examples of how people use the while iterator in model builder but cannot find a single thing. Is it broken? I ask because I am trying to run a model that loops a select by location by intersection. I have included a while iterator and an SQL statement to control it. The SQL statements call on two variables from "Get Count" functions that basically states when no additional features are selected, stop the model. Or actually it says run the model "while" selected features are still being added. The SQL statement works fine, but the model loops endlessly. This may be a foolish oversight on my part, but unfortunately there are no resources to help in fixing this.

This is the process and the loop

Executing (Selcount1): GetCount perm_watercourse3
Start Time: Thu Nov 22 08:21:28 2012
Row Count = 480
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (Select Layer By Location (2)): SelectLayerByLocation perm_watercourse3 INTERSECT # # ADD_TO_SELECTION
Start Time: Thu Nov 22 08:21:28 2012
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (Selcount2): GetCount perm_watercourse3
Start Time: Thu Nov 22 08:21:28 2012
Row Count = 483
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (While): IterateCondition '480 = 483' FALSE
Start Time: Thu Nov 22 08:21:28 2012
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (Select Layer By Location): SelectLayerByLocation perm_watercourse3 INTERSECT # # ADD_TO_SELECTION
Start Time: Thu Nov 22 08:21:28 2012
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (Selcount1): GetCount perm_watercourse3
Start Time: Thu Nov 22 08:21:28 2012
Row Count = 483
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (Select Layer By Location (2)): SelectLayerByLocation perm_watercourse3 INTERSECT # # ADD_TO_SELECTION
Start Time: Thu Nov 22 08:21:28 2012
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (Selcount2): GetCount perm_watercourse3
Start Time: Thu Nov 22 08:21:28 2012
Row Count = 483
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (While): IterateCondition '483 = 483' FALSE
Start Time: Thu Nov 22 08:21:28 2012
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (Select Layer By Location): SelectLayerByLocation perm_watercourse3 INTERSECT # # ADD_TO_SELECTION
Start Time: Thu Nov 22 08:21:28 2012
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (Selcount1): GetCount perm_watercourse3
Start Time: Thu Nov 22 08:21:28 2012
Row Count = 483
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (Select Layer By Location (2)): SelectLayerByLocation perm_watercourse3 INTERSECT # # ADD_TO_SELECTION
Start Time: Thu Nov 22 08:21:28 2012
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (Selcount2): GetCount perm_watercourse3
Start Time: Thu Nov 22 08:21:28 2012
Row Count = 483
Succeeded at Thu Nov 22 08:21:28 2012 (Elapsed Time: 0.00 seconds)
Executing (While): IterateCondition '483 = 483' FALSE

Viewing all articles
Browse latest Browse all 2328

Trending Articles