I'm trying to get some good use out of the Iterator tool in ModelBuilder and set up some processes to simplify my workflow - and am just having a bit of trouble getting the logic right on my process.
My ultimate goal is to:
So I can ultimately create a table that has the attribute table of all those features within each watershed.
To test that my iterator is selecting things properly I'd thought I'd set the output selection connected to the Feature Class to Shapefile tool to see if I can at least get an independent shapefile of each selected watershed from the iterator.
However, I only end up with a single output shapefile which doesn't contain the name of the watershed from the Name field - just "I_0_Name". I've tried setting the output location to use the inline variable "%Value%" but I still only get one shapefile in the output with the name having "%Value%" as a string in the name - not the actual name of the selected feature.
I'm definitely missing something or misunderstanding the purpose of the Iterate Feature Selection tool - if that tool can't accomplish what I'm considering, is there another tool that would work better?
Hi David, here's some screenshots and more details about the model I'm attempting.
I think you're a bit stuffed by only being able to specify the output location rather than filename using Feature Class to Shapefile.
I would try other tools such as Copy Features or Feature Class to Feature Class and specify the outpath using the same inline variable substitution you've tried previously (not forgetting the .shp extension at the end).