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

asked Jun 27, 2018 at 16:37
1
  • 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. Commented Jun 28, 2018 at 9:34

1 Answer 1

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

answered Jun 27, 2018 at 17:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.