<?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 Model generates different results than running subset features tool individually (iterate feature classes) in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/model-generates-different-results-than-running/m-p/858854#M1928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;am looking for a way to go through 30 feature classes (each with about 168 x,y points and attribute data of dates and times) and then select a random point from each feature class (for a total of 30 points at the end-1 from each feature class).&amp;nbsp; I have built the following model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Folder with 30 feature classes --&amp;gt; iterate feature classes --&amp;gt; OutputClass# --&amp;gt; Subset Features --OutputRandomPoint for outputclass#.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The model kinda works (it gives me 30 points, 1 from each feature class as I asked), but the results are not as random as they should be (some points are at the same position- i.e. same date and time- in each class). I know some overlap may occur (shouldn't be too often), but if I run each feature class individually through the subset features tool&amp;nbsp;(lots of clicking), I get way more random results.&amp;nbsp; I have tried various sets of data and the model is not as random as individually doing it.&amp;nbsp; Any idea what is going wrong in my model? I would love to use the model and click twice instead of using the subset feature tool 30 times every week for my points.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first time building an iterate model so I hope it's something simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Side facts:&lt;/P&gt;&lt;P&gt;iterate feature class:&amp;nbsp; using feature type = point&lt;/P&gt;&lt;P&gt;subset feature:&amp;nbsp; using training feature subset = 1, and using subset size units = absolute_value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2018 00:23:38 GMT</pubDate>
    <dc:creator>MitchellKern</dc:creator>
    <dc:date>2018-03-28T00:23:38Z</dc:date>
    <item>
      <title>Model generates different results than running subset features tool individually (iterate feature classes)</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-generates-different-results-than-running/m-p/858854#M1928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;am looking for a way to go through 30 feature classes (each with about 168 x,y points and attribute data of dates and times) and then select a random point from each feature class (for a total of 30 points at the end-1 from each feature class).&amp;nbsp; I have built the following model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Folder with 30 feature classes --&amp;gt; iterate feature classes --&amp;gt; OutputClass# --&amp;gt; Subset Features --OutputRandomPoint for outputclass#.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The model kinda works (it gives me 30 points, 1 from each feature class as I asked), but the results are not as random as they should be (some points are at the same position- i.e. same date and time- in each class). I know some overlap may occur (shouldn't be too often), but if I run each feature class individually through the subset features tool&amp;nbsp;(lots of clicking), I get way more random results.&amp;nbsp; I have tried various sets of data and the model is not as random as individually doing it.&amp;nbsp; Any idea what is going wrong in my model? I would love to use the model and click twice instead of using the subset feature tool 30 times every week for my points.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first time building an iterate model so I hope it's something simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Side facts:&lt;/P&gt;&lt;P&gt;iterate feature class:&amp;nbsp; using feature type = point&lt;/P&gt;&lt;P&gt;subset feature:&amp;nbsp; using training feature subset = 1, and using subset size units = absolute_value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 00:23:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-generates-different-results-than-running/m-p/858854#M1928</guid>
      <dc:creator>MitchellKern</dc:creator>
      <dc:date>2018-03-28T00:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Model generates different results than running subset features tool individually (iterate feature classes)</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-generates-different-results-than-running/m-p/858855#M1929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would:&lt;/P&gt;&lt;P&gt;1) build a model that does this:&lt;/P&gt;&lt;P&gt;input feature class -&amp;gt; Count rows -&amp;gt; Calculate Value with &lt;A href="https://support.esri.com/en/technical-article/000013141"&gt;python expression&lt;/A&gt; to get a random Feature ID between 0 and count Rows result - 1 -&amp;gt; Feature Class to Feature Class with a select expression OBJECTID = %randomID% -&amp;gt; output feature class&lt;/P&gt;&lt;P&gt;2) test this, once it works, wrap it with your iterator, and name the output feature class with %n% so the outputs are uniquely named.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 05:56:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-generates-different-results-than-running/m-p/858855#M1929</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-03-30T05:56:26Z</dc:date>
    </item>
  </channel>
</rss>

