ArcPro task definition query

1383
6
11-10-2020 12:49 PM
JuliaSurkis
New Contributor II

I am trying to make a pro project as simple as possible for a user in my organization, so I am creating a task. Is there an easy way to modify a definition query in the task (every time it's the same field/layer, she just changes the number)?  Then could that same number be copied and used to query another layer? It seems like it should be possible but I'm just not finding the solution. 

I basically just want her to be able to enter the number, all the selections and zooming is automated, she can verify, and then an automated export Layout to PDF.  

Thanks!

Tags (2)
0 Kudos
6 Replies
DavidPike
MVP Frequent Contributor

For the sake of efficiency, it might be better to verify the data first (perhaps use bookmarks or map series navigation to go through them, or create a locator from the feature to easily search).

Then export the entire map series on the verified data. (or just export the entire series and do the validation from the pdf's? although of-course I'm not sure if the validation is that simple). 

It's a step in the right direction to automate the map creation, but why have a tool to do it individually still?

There's also the python option of replicating the Map Series functionality.

If you give more info on the task, there might be some other processes that can be automated, although the user may not be as delighted at this as you may expect....

Map series—ArcGIS Pro | Documentation 

0 Kudos
JuliaSurkis
New Contributor II

Hi DavidPike,

I am familiar with map series, and this wouldn't really work for the layer, as really all she is doing is going in every day or two to verify and print maps for the newly added points - which she has a list of, and is often no more than a couple a day. There are two different layers as well - so right now she needs to go in and change the number in a definition query for two layers, I was hoping to make it so she only had to enter the new number in once. The only reason I was thinking of building the task is to make it super easy and fool-proof for someone who is unfamiliar and uncomfortable with technology/arcpro. It might not be the right/best way to do it, but I'm open to suggestions.

 

Thanks,

Julia

0 Kudos
AmirBar-Maor
Esri Regular Contributor

Hi Julia,

Currently, there is no way in Tasks to change a definition query.

 

Current options:

1. Use a task to select the layer properties, then instruct the user on how to modify the definition query.

2. Write a python script tool that modifies the definition query, then use a task step to call that script

Future: This capability is in Tasks Roadmap.

0 Kudos
MeleKoneya
Occasional Contributor III

Has the capability to apply a definition query been added to ArcGIS Pro Tasks?    My workflow is 

  1. User selects a polygon using the locate tool
  2. Copy attributes for the case number of the polygon as a variable 'case_num'
  3. Use case_num in a definition query on the layer that the locate tool was used on

Thanks,

Mele

0 Kudos
AmirBar-Maor
Esri Regular Contributor

@MeleKoneya 

This capability has not been implemented yet.

If interested, please vote on this idea: https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idi-p/...

 

Amir

0 Kudos
MeleKoneya
Occasional Contributor III

Amir,   Thank you for the response.    I just voted for this idea.

Mele

0 Kudos