#Arcmap definition query pro
Updating the query definition itself is the same between Pro and ArcMap, it is getting access to the layers that is different between the two: map_name = # name of Pro map tab containing layers to be updatedĪprx = arcpy. Since the ArcGIS Pro GUI is so different than ArcMap GUI, I suggest you read through the ArcGIS Pro documentation to get familiar with how the new ArcPy mapping module works. In short, it is an ArcMap to ArcGIS Pro ArcPy conversion issue, not a Python version conversion issue. The issue you are running into has to do with the ArcGIS Pro GUI being significantly different than ArcMap, and the ArcGIS Pro mapping module being completely new to address the restructured Pro GUI. Your question/issue doesn't involve any Python 2 to Python 3 issues.
![arcmap definition query arcmap definition query](http://www.unm.edu/~jcoonrod/GIS/Assignments/images/A5_03.jpg)
Have you tried the code? If so, what was the first error? (I am guessing Line 02). Lyr = m.listLayers(aprx,"CONDO_5TH_LEVEL*") Lyr = m.listLayers(aprx,"CONDO_4TH_LEVEL*") Lyr = m.listLayers(aprx,"CONDO_3RD_LEVEL*") Lyr = m.listLayers(aprx,"CONDO_2ND_LEVEL*") Lyr = m.listLayers(aprx,"CONDO_1ST_LEVEL*") Here's my attempt to convert the script to version 3 to use in ArcGIS Pro: I'm new to Python and doing my best to recreate this script in ArcGIS Pro, but having difficulty especially using the listLayer.
![arcmap definition query arcmap definition query](http://www.bgcarto.com/wp-content/uploads/2014/01/Stn02.jpg)
![arcmap definition query arcmap definition query](https://i.ytimg.com/vi/MSg85wMOhC0/maxresdefault.jpg)
Contour data consists of many linear features that can take a. I was able to successfully create a script (not the most elegant) in ArcMap and not knowing that the GUI is different in Pro and causing errors to my script. A great use-case for ArcMap definition queries is to improve the performance of a map document. My goal is to create a script that applies a definition query to multiple layers in ArcGIS Pro.