I am building a model and am trying to create a variable (that will be turned into a parameter and then added as a field) that is a drop down list where only specific values can be chosen.
Any help in how to do this. I have:
- right clicked the white space in ModelBuilder
- clicked on create variable
- selected string
- right clicked on the oval and chose 'list of values'
- Entered my list items
This doesn't seem to act as a drop down when running the model. Am I doing something wrong? These are text values I'd like in the drop down.
-
1It could be worth taking a look at this ArcGIS Discussion Forum thread on creating Variable Pick Lists with ModelBuilder.PolyGeo– PolyGeo ♦2013年02月14日 21:50:48 +00:00Commented Feb 14, 2013 at 21:50
1 Answer 1
Often a particular tool that will be accepting this variable may have the option of a value list filter for the parameter.
-
1Thanks. I found this doc shortly after I posted the question. Works exactly how I need it.Craig– Craig2013年02月15日 19:24:59 +00:00Commented Feb 15, 2013 at 19:24
-
2Just in case you find generating a choice list from a field relevant: blogs.esri.com/esri/arcgis/2011/08/25/…Alex Tereshenkov– Alex Tereshenkov2013年03月26日 07:56:11 +00:00Commented Mar 26, 2013 at 7:56
-
Is it possible to create a value list filter dynamically? For example, if the tool is provided a dataset and field name as input parameters, can a set of distinct values be returned?philiporlando– philiporlando2020年10月21日 23:24:53 +00:00Commented Oct 21, 2020 at 23:24