In the model builder, I have different result of features on every iteration inside same model.
How can I merge all result feature to single output feature class ??
I made it.
the solution is replace merge tool with append tool.
it was on that link : Problems Integrating Sub-Model into Master Model
i guess it isn't clear what you are appending to then. Obviously you are appending to one of the elements used as input into the iterator (thereby changing it), rather than collecting the results of the iterator to produce an output. Seeing that part of the model would be interesting to see where that would be useful.
No Dan, I want to make accumulative features from each iteration.
I tried Merge tool and Append, But Append tool is the right.
thanks for help
It would have been useful since most of use were under the assumption that you wanted to produce a new output rather than appending to an existing output. Append adds to an existing output (which isn't a good idea for a variety of reasons) and Merge produces a new output, leaving the inputs to the model unaltered.
I hope you weren't producing a new output then appending to it, since that is a problem with collecting the results from iterator.
From the help...
To combine input datasets into a new output dataset, use the Merge tool.
I think Darren's suggestion is still the correct one, but we didn't get to see your model
no I didn't
but if I put collect value, will collect from first iteration to last iteration or last iteration only
and if the input are features, Is collect value tool output features or not?
yes I did that I put %n% in the end, but I have last result only.
that is because merge tool run in every iteration, isn't that. but that is not that what I want.
I want to collect all iteration data in one merge, not many merge in every iteration
(one merge for all iteration)
And did you uniquely name each output in the iterator by naming it something like "tmp%n%"? Otherwise the iterator will just overwrite on each iteration! (The examples in the help demonstrate this.)
Did you collect the values with Collect Values?
I tried to separate my model sub model for iteration and other to put first one and merge tool,
and I use variable substitution for sub model output , and the model run but the result was for last iteration only.
See this thread to see how to merge outputs of an iterator:
Merge error after Iterate Feature Selection
I didn't find in that link any topic about merge the results of an iterator A quick tour of using iterators—Help | ArcGIS for Desktop .how can I do that??
then I can't separate my processes ,because it only one processes but every iteration give me other feature,
I use feature selection iteration . so every iteration different result , and I want to add all result in one feature class.
so the first merge is to merge the results of an iterator A quick tour of using iterators—Help | ArcGIS for Desktop
and if you have separate processes, you can merge the separate processes... which may have an iterator in them... into a final output.
So you have merging results of branched processes, merging the results of an iterator and merging the results of multple processes. The tools are all outlined in the lines.
no that is not what I want.
I want to merge iteration results in feature class
I can do this if I know how can I make one tool inside model not run except the last iteration.
Merge—Help | ArcGIS for Desktop is for featureclasses etc, but I suspect you are looking for
Merge Branch—Help | ArcGIS for Desktop
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.