<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Definition Query dataset in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/definition-query-dataset/m-p/357146#M2295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tabraiz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could accomplish this by creating a &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/creating-an-add-in-tool.htm"&gt;python add-in&lt;/A&gt;.&amp;nbsp; You would want to use the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/listlayers.htm"&gt;arcpy.mapping.ListLayers&lt;/A&gt; function to iterate through each layer in your MXD.&amp;nbsp; You can then use &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/layer-class.htm"&gt;Layer &lt;/A&gt;class to apply the definition query to each layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 13:05:18 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2016-02-04T13:05:18Z</dc:date>
    <item>
      <title>Definition Query dataset</title>
      <link>https://community.esri.com/t5/developers-questions/definition-query-dataset/m-p/357145#M2294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;I need to develop an ARCMAP Addin tool by which i could set a definition query on a dataset, i have a number of layers with same "ID" field and I have to query out each layer one by one.&lt;/P&gt;&lt;P&gt;KINDLY GUIDE ME WITH THIS OR ANY OTHER SOLUTION IS ALSO APPRECIABLE. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 04:56:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/definition-query-dataset/m-p/357145#M2294</guid>
      <dc:creator>TabraizAhmed</dc:creator>
      <dc:date>2016-02-04T04:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query dataset</title>
      <link>https://community.esri.com/t5/developers-questions/definition-query-dataset/m-p/357146#M2295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tabraiz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could accomplish this by creating a &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/creating-an-add-in-tool.htm"&gt;python add-in&lt;/A&gt;.&amp;nbsp; You would want to use the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/listlayers.htm"&gt;arcpy.mapping.ListLayers&lt;/A&gt; function to iterate through each layer in your MXD.&amp;nbsp; You can then use &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/layer-class.htm"&gt;Layer &lt;/A&gt;class to apply the definition query to each layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 13:05:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/definition-query-dataset/m-p/357146#M2295</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-02-04T13:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query dataset</title>
      <link>https://community.esri.com/t5/developers-questions/definition-query-dataset/m-p/357147#M2296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hello Tabraiz,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;As another option, in the XTools Pro extension to ArcGIS there is a couple of tools that you could use for this task.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;- Using Copy Layer Properties: create the required query for one layer, then just copy definition query property from this layer and paste to other layers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;- There is also Definition Query Manager tool allowing to manage queries for all layers in one place, this may also facilitate working with queries for many layers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hope this may help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Andrei&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 14:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/definition-query-dataset/m-p/357147#M2296</guid>
      <dc:creator>AndreiElobogoev</dc:creator>
      <dc:date>2016-02-04T14:36:48Z</dc:date>
    </item>
  </channel>
</rss>

