Solved! Go to Solution.
Thanks for your reply.
I am having trouble getting this to work. The Make Feature Layer tool doesn't seem apply it's query/expression to the input layer (it creates a separate (temporary) layer). I think your solution would work if I needed to create a new layer or temporary layer to be processed further. This is not what I am trying to do. Basically I am trying to simplify the application of a definition query. For example: Instead of having the users [right click > properties > definition query > create SQL query] they would [double click tool > specify the expression value]. Once applied the definition query will only show the features that meet the expression criteria (this is incredibly useful when editing in an area with many features).
Perhaps this cannot be done in ModelBuilder.
Thanks anyways.
Is is possible to create and apply a definition query in ModelBuilder?
The model would be the same as in the attached screenshot except that the tool would be "Definition Query" not "Select Layer By Attribute".
[ATTACH=CONFIG]26204[/ATTACH]
I feel like this should be easy to do.
Any help is appreciated.
Thanks.
pbh
Thanks for your reply.
I am having trouble getting this to work. The Make Feature Layer tool doesn't seem apply it's query/expression to the input layer (it creates a separate (temporary) layer). I think your solution would work if I needed to create a new layer or temporary layer to be processed further. This is not what I am trying to do. Basically I am trying to simplify the application of a definition query. For example: Instead of having the users [right click > properties > definition query > create SQL query] they would [double click tool > specify the expression value]. Once applied the definition query will only show the features that meet the expression criteria (this is incredibly useful when editing in an area with many features).
Perhaps this cannot be done in ModelBuilder.
Thanks anyways.