How to add a submodel to a model?
Make the input workspace variable and the output of the Collect Values tool into model parameters. Rename the input workspace variable Input Dataset to ensure that the variable name is relevant and easy to understand. Save and close the submodel, then add it as a process to the main model.
Can a model be run from the tool dialog box?
Although the model illustrated below cannot be run from within ModelBuilder, it can be run from its tool dialog box. When a model variable is exposed as a parameter, the variable name becomes the parameter label on the model tool dialog box.
How do I add a variable to a model?
To designate model variables as parameters so they will be included on the model tool dialog box, the model must be edited in ModelBuilder. Right-click a variable and click Model Parameter . On this shortcut menu, a check appears next to Model Parameter.
How to add merge tool to main model?
Add the Merge tool to the main model and the Iterate Feature Classes iterator and the Collect Values tool to the submodel. In the submodel, set the workspace containing the feature classes to be merged as the input for the Iterate Feature Classes iterator.
How to create a model within a model?
The following is a step-by-step description of how the full workflow above was created. Refer to Essential ModelBuilder vocabulary for more information about terms and techniques used below. Create two models: a main model and a submodel, where the submodel is nested inside the main model.
How to iterate a model into a model?
Connect the Iterate Feature Classes output variable Output Feature Class to the Collect Values tool, so the path of every point feature class in the workspace is iterated through and collected. Make the input workspace variable and the output of the Collect Values tool into model parameters.