Quantcast
Channel: Forums - Geoprocessing
Viewing all articles
Browse latest Browse all 1952

Model Builder: Continue Processing If Features Selected

$
0
0
I have a feature class that may or may not have a number of features selected. If there are features selected, I want to process them using a Model Builder sequence I have prepared. How do I check "if features are selected, continue, otherwise stop processing"? I tried the following from looking at another post, but regardless whether the Boolean Output is "True" or "False", the model still continues processing past the Boolean Output point. Does anyone have any suggestions to either improve upon my sequence or another solution that will do the checking for selected features?

Attached are two screenshots. One is the sequence I set up in Model Builder, with the "check for selected features" Calculate Value first, and the second is the code within that Calculate Value tool.

Attachment 27006

Attachment 27007

I would assume this is pretty basic, but it's stumping me. Thank you for any assistance.
Attached Thumbnails
Click image for larger version

Name:	MB.png‎
Views:	N/A
Size:	19.5 KB
ID:	27006   Click image for larger version

Name:	CalcValue.png‎
Views:	N/A
Size:	34.3 KB
ID:	27007  

Viewing all articles
Browse latest Browse all 1952

Trending Articles