<?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: how to select by attributs in modelbuilder with iterate? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612491#M20324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Einar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your images are unreadable, can you upload better quality images so we can read your model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2014 13:03:48 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2014-04-04T13:03:48Z</dc:date>
    <item>
      <title>how to select by attributs in modelbuilder with iterate?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612490#M20323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: edorheim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to find an answer to this question on the forum since there is quite a few that seems similiar, but I can't find an answer to my question in them, so if you know that this has been answered before, please redirect me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have crated a model that iterates GPX-files from a folder and works through it and gives me a raster as output with pixel values after how many tracks passes through each pixel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works the way I want it to(except it's quite slow).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i want is to add a function to my model, now it creates one combined raster from every input GPX file, but in addition I want it to do the same just only for each month.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;every polyline feature has an attribute field called "Month" with values 1-12 after which month it was created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the model so far(simplified, the full one is in attached thumbnails):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32799[/ATTACH] [ATTACH=CONFIG]32800[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm thinking that the last par of the model, from "Polyline to Raster" and out, needs to be copied for each month, and with some type of "select by attributes" I can manage to create rasters from specific months.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is that I don't know how to select the polylines by attributes and get them in to a new string on the model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is kind of what I think it might look like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32801[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the first part of the model is the same as above, attached one string for February and one for January, and its this select by attributes step i need help with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;anyone? Thanks for your time!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 11:41:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612490#M20323</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-04-04T11:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to select by attributs in modelbuilder with iterate?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612491#M20324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Einar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your images are unreadable, can you upload better quality images so we can read your model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 13:03:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612491#M20324</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-04-04T13:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to select by attributs in modelbuilder with iterate?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612492#M20325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: edorheim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Einar,&lt;BR /&gt;&lt;BR /&gt;Your images are unreadable, can you upload better quality images so we can read your model?&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about that! tried to fix it now, had to split the model into two pictures, but it should be fine now!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for letting me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 13:57:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612492#M20325</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-04-04T13:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to select by attributs in modelbuilder with iterate?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612493#M20326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Einar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you familiar with the concept of a sub-model? It is literally nothing more than you dragging a pre-built model into another model when in model builder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can only have 1 iterator in a model so you you cannot create a loop within a loop by sticking 2 iterators in 1 model. The solution to this is to put the second iterator and the connected logic in its own&amp;nbsp; "sub" model and then drag the sub model into the master model and connect it up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To pass outputs of a tool into the sub model you must set the inputs of sub model as parameters (right click on them and set as parameter so you get that "P").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully you understand above? Well if it were me I would create a master model with your logic up to your "field to build raster calc". As I understand that is a polyline featureclass with a month field?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now create new new model which has a feature selection iterator as it start with the case field being your month and chain the logic of &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;polyline to raster&lt;/SPAN&gt;&lt;SPAN&gt; to &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;cell statistics&lt;/SPAN&gt;&lt;SPAN&gt;. You would then use inline substitution to give your final output a unique name, in your case based upon month ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You then drag this model into the master model and connect it up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 16:14:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612493#M20326</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-04-04T16:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to select by attributs in modelbuilder with iterate?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612494#M20327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: edorheim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Einar,&lt;BR /&gt;&lt;BR /&gt;Are you familiar with the concept of a sub-model? It is literally nothing more than you dragging a pre-built model into another model when in model builder.&lt;BR /&gt;&lt;BR /&gt;You can only have 1 iterator in a model so you you cannot create a loop within a loop by sticking 2 iterators in 1 model. The solution to this is to put the second iterator and the connected logic in its own&amp;nbsp; "sub" model and then drag the sub model into the master model and connect it up.&lt;BR /&gt;&lt;BR /&gt;To pass outputs of a tool into the sub model you must set the inputs of sub model as parameters (right click on them and set as parameter so you get that "P").&lt;BR /&gt;&lt;BR /&gt;Hopefully you understand above? Well if it were me I would create a master model with your logic up to your "field to build raster calc". As I understand that is a polyline featureclass with a month field?&lt;BR /&gt;&lt;BR /&gt;Now create new new model which has a feature selection iterator as it start with the case field being your month and chain the logic of &lt;SPAN style="font-style:italic;"&gt;polyline to raster&lt;/SPAN&gt; to &lt;SPAN style="font-style:italic;"&gt;cell statistics&lt;/SPAN&gt;. You would then use inline substitution to give your final output a unique name, in your case based upon month ID.&lt;BR /&gt;&lt;BR /&gt;You then drag this model into the master model and connect it up.&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;never tried model in a model, but understand the concept i think. from the part you call master model the output is several polyline feature classes, one for each GPX-file in the input for the Iterate files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to divide it in to two models, but still i don't see how i get it to choose only files with specific attribute values.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what is this "case field? and inline substitution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is the attribute tables of my outputs from the "master model":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32834[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as you probably have figured out I'm quite new to this model builder concept, so I really appreciate your help! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Einar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 12:41:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612494#M20327</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-04-05T12:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to select by attributs in modelbuilder with iterate?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612495#M20328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Einar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the easiest way to help you here is to create a&amp;nbsp; dummy scenario which you can explore and try and understand. To this end I have uploaded a dummy toolbox with a model calling a sub-model so you can understand how they link and what &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_using_inline_variable_substitution/002w0000001t000000/" rel="nofollow" target="_blank"&gt;inline substitution&lt;/A&gt;&lt;SPAN&gt; is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 20:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-select-by-attributs-in-modelbuilder-with/m-p/612495#M20328</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-04-06T20:33:14Z</dc:date>
    </item>
  </channel>
</rss>

