Select to view content in your preferred language

model builder - can i define a string to be used for paths and filenames throughout?

681
1
11-16-2010 02:33 PM
jonharvey
New Contributor
Hi

I am using Model Builder with Arc 9.3 to automate a series of DEM processing steps that need to be carried out for 27 watersheds.  The model is simple; it does only this:

start with raster1
extract raster1 by feature1 (mask) to make raster2
re-project raster2 to make raster3
re-sample raster3 to make raster4

That's it.  It's a really simple model, but here's my issue:  I want to be able to define a variable at the start that is a code for the watershed...then use that code to define the path in which I want Arc to look for feature1, and to define filenames and destination paths for raster2, raster3, and raster4.  In other words, when I run the model, I want to only have to enter the watershed code, then have the model be able to find the input files and know where to put and how to name the output files.

As of now, I have been using %watershed% as the variable in modelbuilder -- and I just need to figure out how to allow the user to define the value of that variable every time the model is run.

Is this possible?  Any tips would be helpful.

thanks!
0 Kudos
1 Reply
DustinEdge
Deactivated User
If you right click on the variable you can make it a Model parameter...which is exposed to the user when the user runs it.

Cheers
0 Kudos