[GIS] Modelbuilder: How to use submodel output as input for another tool

arcgis-desktoparcmapmodelbuilder

I have a simple model that adds some new fields to a layer and calculates values for them. I want to then use this updated layer as an input for Clip. Normally I can just connect the output to the Clip tool, but I would like to package the first part as a submodel:
enter image description here

When I add the submodel as a tool, the green output variable doesn't show up. Why?

I tried adding Collect Values to the end of the submodel and then setting the output as a parameter. This makes the output variable show up in the main model, but it cannot be connected to Clip as an input; only a precondition.
enter image description here

Best Answer

Right-click the sub-model, and then choose a variable from that model to expose as a parameter. Like so: enter image description here. Then inset the sub-model with the exposed parameter into the new model, and the output value (green oval) should be exposed for you to attach further tools to.

Related Question