1

I'm using modelbuilder to do some basic tasks (clipping, dissolving, etc) on several layers related to land cover and land use within a certain watershed. The way I have the model set up now, the watershed boundary has to be a separate parameter for each layer that I'm processing. However, I'm wondering if there is a way to reference the watershed boundary as a parameter only one time to avoid having 5 parameters that are exactly the same. This model needs to be used in multiple watersheds, so the watershed boundary layer has to be a parameter. enter image description here

  • Using your current model, simply use the connect wand to connect just one watershed boundary input to all the clip tools ensuring you select Clip Features in the pop up menu as it is the clipping layer. This will disconnect any existing input, so you will need to select those and delete them. – Hornbydd Jun 28 '18 at 9:34
1

Follow these steps to reuse a model parameter in ArcGIS Model Builder

  1. In the new model builder window right click and select-> Create Variable->Shapefile. For my example I did this three times creating the shapefile and two Raster Data variables. I suggest renaming the variables to something meaningful.
  2. For each variable you just created, right click on it and activate the "Model Parameter" option.
  3. Add your tool from the toolbox, i.e. Data Management\Raster Processing\Clip
  4. Open the tool in your model, and map the tool inputs to the variables you just created.
  5. Repeat steps 3 & 4 as needed.
  6. Activate the Model Parameter option for the outputs as appropriate.
  7. The model will not run because it does not have any valid inputs paths initially provided. To test, supply valid inputs for each of your custom variables, or save the model and run it from the toolbox. You will be prompted for the model parameters.

Sample Model

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.