<?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 in ModelBuilder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804791#M3042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at using an iterator? Seems like you could iterate the values of your Circuit field and that might do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00400000000t000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00400000000t000000&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2015 14:03:16 GMT</pubDate>
    <dc:creator>andysp</dc:creator>
    <dc:date>2015-05-15T14:03:16Z</dc:date>
    <item>
      <title>Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804785#M3036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In an mxd session one can create a definition query for a particular feature by simply creating it in the Table Of Contents&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I would like to do is create a definition query in model builder for a particular feature class that is used as a selection feature for the rest of the model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 14:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804785#M3036</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2013-09-20T14:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804786#M3037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert, wouldn't you do this with the "Make Feature Layer" tool from the toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There you can add a sql expression. Will do the same thing as a definition in the properties. Only the selected data is passed on to the next process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can probably copy your selection text from the dialog you do manually in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 15:15:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804786#M3037</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2013-09-20T15:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804787#M3038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I knew it would be something simple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am going to plug it in and give it a test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Robert, wouldn't you do this with the "Make Feature Layer" tool from the toolbox.&lt;BR /&gt;There you can add a sql expression. Will do the same thing as a definition in the properties. Only the selected data is passed on to the next process.&lt;BR /&gt;You can probably copy your selection text from the dialog you do manually in ArcMap.&lt;BR /&gt;Cheers,&lt;BR /&gt;Neil&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 15:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804787#M3038</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2013-09-20T15:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804788#M3039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sadly it did not work.&amp;nbsp; I think if I had a more simple model it may have worked but I wanted to use the parameter as the beginning of 23 different sub operations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't really need the solution I just want it.&amp;nbsp; The model works fine IF I do the definition query to the Feature Class before running the model.&amp;nbsp; And as I won't have to run it to many times I can just remember to define the data first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone else has any suggestions I would love to try them out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My model takes Transmission lines that are distinguished by Line Name (180 unique) Segment (23 different segments) and Circuit number (2 unique).&amp;nbsp; I then have 65000 poles some of which straddle segments and circuits.&amp;nbsp;&amp;nbsp; What I am doing is extracting those poles and creating a new feature that segregates into grouping the structures by which line it is on and which segment and circuit.&amp;nbsp; and for those that straddle multiple segments and circuits it will create multiple structures.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Long story short I have the model working perfectly if I define circuit 1 or 2 and then run the model twice.&amp;nbsp; However, as I am doing this and finding drawing errors and fixing them and running it again etc etc... I was just looking for a way to streamline my process.&amp;nbsp; Not that it is a pain, I just want to know how at this point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 16:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804788#M3039</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2013-09-20T16:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804789#M3040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's a Dan Patterson script that I learned how to do this from (thanks Dan). Look what he does starting on line 199. The % sign is used to do a substitution to get around the problem caused with required quotations for the query. I have read that Python has a new way to do the equivalent, but this works for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 23:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804789#M3040</guid>
      <dc:creator>MichaelStead</dc:creator>
      <dc:date>2013-09-20T23:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804790#M3041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use definition query on a table in my file geodatabase, so i used "make table view" which is similiar to "make feature layer". but it wouldn't work. I set the model environment to be the geodatabse all my data are in, but it still says it cannot find the table which is the result of "make table view". I am wondering if I am missing something. Do you have an example script I could refer to? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 13:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804790#M3041</guid>
      <dc:creator>deleted-user-RUEqqvNTOoQf</dc:creator>
      <dc:date>2015-05-15T13:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804791#M3042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at using an iterator? Seems like you could iterate the values of your Circuit field and that might do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00400000000t000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00400000000t000000&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 14:03:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804791#M3042</guid>
      <dc:creator>andysp</dc:creator>
      <dc:date>2015-05-15T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804792#M3043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I have done in the past is use the "Make Feature Layer tool" with this you can include a definition query, and it can also be dynamic if you are using an iterator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/definition-query-in-modelbuilder/m-p/804792#M3043</guid>
      <dc:creator>MichaelHeirendt</dc:creator>
      <dc:date>2016-06-01T20:15:46Z</dc:date>
    </item>
  </channel>
</rss>

