1

I set up a model that shall use an attribute field from a given feature class as a parameter. The feature class is a model parameter by itself and I want the user to choose the feature class first and then one attribute field from the ones contained within this chosen feature class. The only working way right now is to type the correct field name, but what if the user does not know the name and just wants to choose from a list? This is my model with the input mask:

enter image description here enter image description here

I want the "Dissolve Field" to be a list of all available attributes from the input polygons, but I get an empty dropdown, since I don't know how to tell the model to read all field names and parse them to the dropdown menu.

This is specifically for using the model builder, NOT for a python script, where I know that you can do stuff like this with the "Validation" tab in the properties.

Using field parameters in calculate field is not exactly what I'm looking for, if I got the question right.

asked Feb 22, 2018 at 11:55

1 Answer 1

1

I've manage to do that through this workaround (see images below):

Note: You can access the Get Field Value Tool through Insert> Model Only Tools

Model Builder view

Tool GUI

answered Feb 22, 2018 at 13:24
3
  • Eureka! :) Could you edit your answer, showing that you have to connect "Value" (the outcome of "Get Field Value") with "Dissolve" instead of "Dissolve Field"? At least that's what worked for me, not exactly the way you drew it up. Commented Feb 22, 2018 at 14:02
  • I believe that would depend if your "Dissolve tool" would expect the name of the field or the actual value of the field for a given record. I assumed that you needed the name of the field. Commented Feb 22, 2018 at 17:46
  • You are absolutely right, sorry for the confusion Commented Feb 23, 2018 at 7:13

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.