Model stopping with empty outputs

09-05-2013 04:07 AM
New Contributor

I'm running a very large model, and the very beginning of this process involves creating numerous point files from line files (for an eventual series of veiwsheds.

To create these point files, I'm using the "create random points" tool, and using a field in the line file to get an average point spacing distance of 10m. There are 3 line files I am using, producing 3 point files.

Sometimes, there's only 2 such line files. This is a problem for model builder as it cannot ignore the fact there's empty output and continue to do the others. I have a feeling I need to create an if-else script, but I really don't know where to start and I can't seem to find an answer online.

Can anybody help with this? I've added a much simplified example to show the beginning process. So say there's no roads (or paths), I would like it to go through to the next regardless of whether one appears to have an empty output.
0 Kudos
0 Replies