Select to view content in your preferred language

Using a variable name as the name for output data

802
2
08-04-2010 05:25 PM
DamianMilne
Emerging Contributor
Hi all, I've created a very simple 'select' model (attached). The user types in a value and the model searches for all of the data within a field that equals that value, it selects those records, and then outputs a shapefile from the selected records.

How do I write my model so that the value the user types in is used as the name of my output shapefile? (I've tried using in line variable substitution but this doesn't appear to work).

Any advice greatly appreciated. Cheers, Damian
0 Kudos
2 Replies
BBicking1
Esri Contributor
Hi all, I've created a very simple 'select' model (attached). The user types in a value and the model searches for all of the data within a field that equals that value, it selects those records, and then outputs a shapefile from the selected records.

How do I write my model so that the value the user types in is used as the name of my output shapefile? (I've tried using in line variable substitution but this doesn't appear to work).

Any advice greatly appreciated. Cheers, Damian



Hello Damian,

if the variable Common Name is the place where the user provides input, then you use %Common Name% as part of Select's output name, like so: C:\workspace\%Common Name%.shp. Note that the user entered string cannot have any spaces.

Barbara Bicking
0 Kudos
AlexGray
Deactivated User
I am trying to get the user to type in a parameter to select and address within the field [ADDRESS] using the select geoprocessing tool.

guess I missed the documentation where it says do this..

can someone provide me with some insight?

Thanks
0 Kudos