0

I have built a model, as input parameter I have a 2 parameters: a Feature Layer and a Field But when I run the model, the Field-Parameter has no values to select. How can I tell the model builder, that I want the Fields from the selected Feature Layer as values in the Field parameter?

1
  • I would look into tool validation. I think you can use this with tools authored using ModelBuilder and not just Python script tools but I am happy to be corrected. Actually I think it is an Obtained from option when you are setting Parameters on the Model Properties but tool validation is useful to know about.
    – PolyGeo
    Commented Nov 18, 2014 at 11:49

1 Answer 1

1

Sounds like you want to derive a field from a layer, this can only be done in a script tool, it is discussed here. You will need to convert the logic of the model into python code.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.