Friday, 6 December 2019

arcgis desktop - Using If precondition is false, continue iterating next input in ModelBuilder?


I've built a model in modelbuilder but cannot find an answer to this problem. Please help if you can.


Firstly I have an 'iterate feature class' tool drawing inputs out of a folder and then selecting attributes from the input table using SQL. I am then using the "get count" tool (which counts the rows selected) to test if any attributes were selected, this is a precondition to continue the model. However, if this precondition is 'false' then the model stops. I'd like for it to just continue with the next iteration of inputs. Is this possible, and if so, any insight would be great. I was thinking I might need if-then-else logic but not sure how to use it in this setting. Please advise. Here is an image of the model.


enter image description here




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...