<?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 run a repeat function in Model Builder (loop? Iterator?) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-run-a-repeat-function-in-model-builder-loop/m-p/1189001#M56886</link>
    <description>&lt;P&gt;I assume you want to randomly fill the Field for "Number of Points" before running "Create Random Points" (inside a model builder). And the number of features in each polygon should change every time you run the model.&lt;/P&gt;&lt;P&gt;If my assumption is correct, you need to add a "Calculate Field" geoprocessing tool in the model, and connect it prior to "Create Random Points" tool.&lt;/P&gt;&lt;P&gt;Your Calculate Field expression (Python Parser) could look like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_0-1656791500337.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45074i1273849448B39D2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_0-1656791500337.png" alt="JayantaPoddar_0-1656791500337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code Block&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import random
def randnum():
    return random.randint(100, 10000)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;randnum()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My field looks something like this.&lt;/P&gt;&lt;P&gt;first run:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_1-1656791768132.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45075i32338AD80374F073/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_1-1656791768132.png" alt="JayantaPoddar_1-1656791768132.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;second run:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_2-1656791841137.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45076iDD0D156A46980FBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_2-1656791841137.png" alt="JayantaPoddar_2-1656791841137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your model will then use this field to create the specified number of random points.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Jul 2022 20:23:48 GMT</pubDate>
    <dc:creator>JayantaPoddar</dc:creator>
    <dc:date>2022-07-02T20:23:48Z</dc:date>
    <item>
      <title>how to run a repeat function in Model Builder (loop? Iterator?)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-run-a-repeat-function-in-model-builder-loop/m-p/1188994#M56885</link>
      <description>&lt;P&gt;Hey all!&lt;/P&gt;&lt;P&gt;I&amp;nbsp;designed a model using Model Bilder- in this model, and I'm using the "Random point" function. I want to set the model to run and, each time, change the value of the points until it reaches a specific value ( from 100 up to 10,000&amp;nbsp;exponentially).&lt;/P&gt;&lt;P&gt;After the random point function, there are more functions, so I need the model to keep running for the following functions according to the point values.&lt;/P&gt;&lt;P&gt;I looked at the "iterator" options, and I don't know if they suit what I'm doing. Maby I need to create a&amp;nbsp; loop, but I never did one using the model builder tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2022 19:00:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-run-a-repeat-function-in-model-builder-loop/m-p/1188994#M56885</guid>
      <dc:creator>linoyzagrizak</dc:creator>
      <dc:date>2022-07-02T19:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to run a repeat function in Model Builder (loop? Iterator?)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-run-a-repeat-function-in-model-builder-loop/m-p/1189001#M56886</link>
      <description>&lt;P&gt;I assume you want to randomly fill the Field for "Number of Points" before running "Create Random Points" (inside a model builder). And the number of features in each polygon should change every time you run the model.&lt;/P&gt;&lt;P&gt;If my assumption is correct, you need to add a "Calculate Field" geoprocessing tool in the model, and connect it prior to "Create Random Points" tool.&lt;/P&gt;&lt;P&gt;Your Calculate Field expression (Python Parser) could look like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_0-1656791500337.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45074i1273849448B39D2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_0-1656791500337.png" alt="JayantaPoddar_0-1656791500337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code Block&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import random
def randnum():
    return random.randint(100, 10000)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;randnum()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My field looks something like this.&lt;/P&gt;&lt;P&gt;first run:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_1-1656791768132.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45075i32338AD80374F073/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_1-1656791768132.png" alt="JayantaPoddar_1-1656791768132.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;second run:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_2-1656791841137.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45076iDD0D156A46980FBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_2-1656791841137.png" alt="JayantaPoddar_2-1656791841137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your model will then use this field to create the specified number of random points.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2022 20:23:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-run-a-repeat-function-in-model-builder-loop/m-p/1189001#M56886</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2022-07-02T20:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to run a repeat function in Model Builder (loop? Iterator?)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-run-a-repeat-function-in-model-builder-loop/m-p/1189136#M56911</link>
      <description>&lt;P data-unlink="true"&gt;Hey&amp;nbsp;&lt;SPAN class=""&gt;Jayanta Poddar&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;, thank you for your answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will focus on my question- this is my model (image attached). I have two rasters (same size and location), and I use the "random point" tool to extract the values of the rasters and operate the GWR tool from there. The number of points will affect the GWR tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to see the change in GWR as a function of the point number; this is why I want the point number to change to 10,000 gradually.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is the &amp;nbsp;"Calculate Field" will would fit in this case? If I'm not using&amp;nbsp;Python Parser how can I add the "Calculate Field" to my model?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linoyzagrizak_0-1656925472875.png" style="width: 641px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45134i553C3AD06C289080/image-dimensions/641x341?v=v2" width="641" height="341" role="button" title="linoyzagrizak_0-1656925472875.png" alt="linoyzagrizak_0-1656925472875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for being so helpful!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 09:10:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-run-a-repeat-function-in-model-builder-loop/m-p/1189136#M56911</guid>
      <dc:creator>linoyzagrizak</dc:creator>
      <dc:date>2022-07-04T09:10:22Z</dc:date>
    </item>
  </channel>
</rss>

