<?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: Copy features a number of times based on a numeric field value in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117355#M4018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I was trying that script and returned this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec codeObject in __main__.__dict__&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:\ArcGIS Tools\CreateDuplicateRecordsOnCountField.py", line 28, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:\ArcGIS Tools\CreateDuplicateRecordsOnCountField.py", line 14, in main&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFeatureclass_management(path, name, "POINT", fc_in, "SAME_AS_TEMPLATE", "SAME_AS_TEMPLATE", fc_in)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 1800, in CreateFeatureclass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 000622: Failed to execute (Create Feature Class). Parameters are not valid.&lt;/P&gt;&lt;P&gt;ERROR 000628: Cannot set input into parameter spatial_reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to solve this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2015 18:51:21 GMT</pubDate>
    <dc:creator>SethPaine1</dc:creator>
    <dc:date>2015-01-07T18:51:21Z</dc:date>
    <item>
      <title>Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117349#M4012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a point feature class with a Count field.&amp;nbsp; I want to copy each feature in the feature class a number of times based on the number in the Count field.&amp;nbsp; For example, if a feature has a Count value of 6, I want six new features created with all the same attributes as the original feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the iteration model tools I can find want to group features based on an attribute value, but I want the number of iterations to be equal to the numeric value in my Count field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 18:05:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117349#M4012</guid>
      <dc:creator>SethPaine1</dc:creator>
      <dc:date>2014-12-30T18:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117350#M4013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use some python to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy
&amp;nbsp;&amp;nbsp;&amp;nbsp; import os

&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_in = r"C:\Forum\DistLinePol\test.gdb\Points" # this one exists
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_count = "Count"
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out = r"C:\Forum\DistLinePol\test.gdb\Points_out" # this one will be created

&amp;nbsp;&amp;nbsp;&amp;nbsp; # create the empty output featureclass
&amp;nbsp;&amp;nbsp;&amp;nbsp; path, name = os.path.split(fc_out)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFeatureclass_management(path, name, "POINT", fc_in, "SAME_AS_TEMPLATE", "SAME_AS_TEMPLATE", fc_in)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # insert the features into the output fc
&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(fc_in, '*') as curs_in:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flds_in = curs_in.fields
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idx_cnt = flds_in.index(fld_count)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.InsertCursor(fc_out, '*') as curs_out:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs_in:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cnt = row[idx_cnt]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in range(0, cnt):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curs_out.insertRow(row)

if __name__ == '__main__':
&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code can be transformed in a tool that you can use in a model...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117350#M4013</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T06:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117351#M4014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Data Interoperability extension has a Cloner transformer for this task, if you want a zero-coding approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is an interesting problem, you're going to end up with coincident points, what is the geoprocessing task you're tackling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 16:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117351#M4014</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2014-12-31T16:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117352#M4015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the average distance of a set of points from the start of a route.&amp;nbsp; However, my point feature class has points that represent multiple records.&amp;nbsp; In this case, the each point may represent many salmon redds (spawning beds).&amp;nbsp; I want to know average location of spawning beds per year along a river route, but since each point represents multiple beds, calculating the mean distance of the points along the route under-represents points with multiple beds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, if I can generate a feature class where each point represents an individual spawning bed, I can then calculate mean distance along the route.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;SP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 17:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117352#M4015</guid>
      <dc:creator>SethPaine1</dc:creator>
      <dc:date>2014-12-31T17:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117353#M4016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did develop a terribly tedious work around (I am not skilled in python).&amp;nbsp; I first exported my points to a personal geodatabase.&amp;nbsp; Then, using Access, I followed the process I found here within the personal geodatabase:&lt;/P&gt;&lt;P&gt;&lt;A href="http://msgroups.net/microsoft.public.access.queries/creating-duplicate-rows/112274" title="http://msgroups.net/microsoft.public.access.queries/creating-duplicate-rows/112274"&gt;Creating duplicate rows - microsoft.public.access.queries&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a table [tblNums] with a single numeric field [Num] and values from 1 to the maximum quantity (1-102 in my case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I created a a make-table query of my current table and tblNums (do not link the two tables). I set the criteria &lt;/P&gt;&lt;P&gt;under the [Num] field to:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;=[Count]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This created a number of duplicate records for each original record equal to the number in my original Count field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then imported the table into ArcMap, and exported as a new table to give it an OID field.&amp;nbsp; Then I took my original point feature class and populated two coordinate fields.&amp;nbsp; Next I joined my original feature class point data table to my new table with replicas (based on a Unique ID).&amp;nbsp; I then created two coordinate fields in my new table and copied the coordinates from the origin table.&amp;nbsp; Then I removed the Join.&amp;nbsp; Lastly, I projected my new table with duplicates based on the coordinate data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It did work, and now I have my original point data with duplicate overlaying features based on the number in my count field.&amp;nbsp; But I wouldn't want to incorporate this process into a regular work flow. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 17:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117353#M4016</guid>
      <dc:creator>SethPaine1</dc:creator>
      <dc:date>2014-12-31T17:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117354#M4017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the code I provided earlier represents a slightly simpler way to duplicate the points...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jan 2015 07:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117354#M4017</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-01T07:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117355#M4018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I was trying that script and returned this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec codeObject in __main__.__dict__&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:\ArcGIS Tools\CreateDuplicateRecordsOnCountField.py", line 28, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:\ArcGIS Tools\CreateDuplicateRecordsOnCountField.py", line 14, in main&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFeatureclass_management(path, name, "POINT", fc_in, "SAME_AS_TEMPLATE", "SAME_AS_TEMPLATE", fc_in)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 1800, in CreateFeatureclass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 000622: Failed to execute (Create Feature Class). Parameters are not valid.&lt;/P&gt;&lt;P&gt;ERROR 000628: Cannot set input into parameter spatial_reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to solve this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 18:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117355#M4018</guid>
      <dc:creator>SethPaine1</dc:creator>
      <dc:date>2015-01-07T18:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117356#M4019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When it creates the output featureclass it is taking the input featureclass as the spatial reference. The error indicates that the featureclass is not valid to extract the spatial reference from. What did you specify as input featureclass? Does it have a spatial reference (=coordinate system)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 18:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117356#M4019</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-07T18:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117357#M4020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the input is projected in NAD_1983_UTM_Zone_10N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 18:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117357#M4020</guid>
      <dc:creator>SethPaine1</dc:creator>
      <dc:date>2015-01-07T18:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117358#M4021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;weird...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... and what if you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy
&amp;nbsp;&amp;nbsp;&amp;nbsp; import os
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_in = r"C:\Forum\DistLinePol\test.gdb\Points" # this one exists
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_count = "Count"
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out = r"C:\Forum\DistLinePol\test.gdb\Points_out" # this one will be created
&amp;nbsp;&amp;nbsp;&amp;nbsp; sr = arcpy.Describe(fc_in).spatialReference

&amp;nbsp;&amp;nbsp;&amp;nbsp; # create the empty output featureclass
&amp;nbsp;&amp;nbsp;&amp;nbsp; path, name = os.path.split(fc_out)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFeatureclass_management(path, name, "POINT", fc_in, "SAME_AS_TEMPLATE", "SAME_AS_TEMPLATE", sr)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # insert the features into the output fc
&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(fc_in, '*') as curs_in:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flds_in = curs_in.fields
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idx_cnt = flds_in.index(fld_count)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.InsertCursor(fc_out, '*') as curs_out:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs_in:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cnt = row[idx_cnt]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in range(0, cnt):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curs_out.insertRow(row)

if __name__ == '__main__':
&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117358#M4021</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T06:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117359#M4022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick.&amp;nbsp; Thank you!&amp;nbsp; Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 19:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117359#M4022</guid>
      <dc:creator>SethPaine1</dc:creator>
      <dc:date>2015-01-07T19:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117360#M4023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome. Glad it worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 19:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117360#M4023</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-07T19:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117361#M4024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you suggested, I made a toolbox tool from the script and it works perfectly for points.&amp;nbsp; A funny thing happens when I try it with polygons though (after changing the feature type to POLYGON in the script).&amp;nbsp; It seems to work and produces a polygon layer, complete with a table representing the duplicated features.&amp;nbsp; But the polygons will not draw.&amp;nbsp; If I zoom to the full extent of the feature class, it zooms to the world, but if I zoom to any particular feature, the extent does not move at all.&amp;nbsp; I don't really need this tool for polygons right now, but am curious as to that particular behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS, what do you normally work on with GIS?&amp;nbsp; Any tips for learning python without taking expensive ESRI classes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Seth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 16:29:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117361#M4024</guid>
      <dc:creator>SethPaine1</dc:creator>
      <dc:date>2015-01-08T16:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117362#M4025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are so many resources on the Internet that can help you to learn Python, it is to much to mention.&lt;/P&gt;&lt;P&gt;One way is to do a search in GeoNet: &lt;A href="/t5/forums/searchpage/tab/message?q=learn python"&gt;https://community.esri.com/search.jspa?q=learn+python&lt;/A&gt;&amp;nbsp; or just Google it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find a large number of post with lots of like to different sites like:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.diveintopython.net/" title="http://www.diveintopython.net/"&gt;Dive Into Python&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://learnpythonthehardway.org/" title="http://learnpythonthehardway.org/"&gt;Learn Python&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are willing to pay for a book, then this post references a very good book:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/398170"&gt;Re: Any Good Python Books&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted some Python Snippets that might help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-1927"&gt;Some Python Snippets&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 23:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117362#M4025</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-08T23:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117363#M4026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seth&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;, I'm trying to accomplish this as well (with points only), but I'm not very skilled in scripts. I also tried the data interoperability tool mentioned and failed. I've spent more time trying to do this than I care to mention and for several years I have been manually doing this for tens of thousands of features (bird detections). This sure would be a game changer for me and our little NGO. I've tried several times with the python provided, but I couldn't overcome the errors. I know it has been a while, but could you share the modelbuilder with me or let me know how you accomplished this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;Ethan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 23:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117363#M4026</guid>
      <dc:creator>EthanDuke</dc:creator>
      <dc:date>2018-02-11T23:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117364#M4027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is a process that you will repeat, it might be good to create a tool from the script. Can you provide a sample of your data and a brief explanation of which field contains the number a feature should be repeated? Also please provide the version of the software you have ArcMap or ArcGIS Pro. I will see if I can create the tool for you so you can run this more easily. Anyway, for other workflows it might&amp;nbsp;come in handy to learn some python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 11:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117364#M4027</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-02-12T11:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117365#M4028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reaching out, Xander. I've provided a link to the data, &lt;A href="https://mrbo.maps.arcgis.com/home/item.html?id=480960358f3943a1a39547a7c4777d0a"&gt;here&lt;/A&gt;. The field containing the number for which each feature is to be repeated by is "Count_". All attributes need to remain the same. It would be great if the count field for the copied records was change to one, but that can be done easily enough after an otherwise successful script run. I'm using the latest version of ArcMap 10.5.0.6491. I hear you on the need to learn Python. I'm completely self-taught in GIS. It's been years of banging of my head against wall until I found solutions and workflows that would have been much easier to accomplish if I knew python. I've got my hands full running our small NGO that covers a lot of ground. I'll work on learning more from the resources mentioned above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 15:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117365#M4028</guid>
      <dc:creator>EthanDuke</dc:creator>
      <dc:date>2018-02-12T15:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117366#M4029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/58610" target="_blank"&gt;Ethan Duke&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small correction,the current version of ArcMap is 10.6 (10.6.0.8321). I just changed the code to create the tool and to do a test run. The updated code is:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# parameters of tool&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_in &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_count &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# create the empty output featureclass&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Create output featureclass..."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_in&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatialReference
&amp;nbsp;&amp;nbsp;&amp;nbsp; shp_type &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_in&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;shapeType&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;upper&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_out&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateFeatureclass_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; shp_type&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fc_in&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SAME_AS_TEMPLATE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SAME_AS_TEMPLATE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# insert the features into the output fc&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cnt_feats &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_in&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'*'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; curs_in&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flds_in &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; curs_in&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idx_cnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; flds_in&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;index&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fld_count&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InsertCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc_out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'*'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; curs_out&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; curs_in&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;idx_cnt&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_row &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;idx_cnt&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; tuple&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lst_row&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; cnt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cnt_feats &lt;SPAN class="operator token"&gt;+=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; cnt_feats &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Writing feature: {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cnt_feats&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curs_out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;insertRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row_out&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Finished writing {} features..."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cnt_feats&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; main&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool will look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/396352_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I did some test runs the feature get duplicated based on the selected count field and the count field is reset to 1.&lt;/P&gt;&lt;P&gt;I did notice that your data has a GlobalID field. The problem with a GlobalID field is when write the the feature the GlobalID is changed in the output:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/396351_pastedImage_1.png" style="width: 620px; height: 284px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any attachments related to the points?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can attach the toolbox, but possibly you won't be able to open it with ArcMap 10.5. I could create a 10.3 version at home which will be compatible with 10.5 that you have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117366#M4029</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T06:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117367#M4030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;A href="https://community.esri.com/people/xander_bakker"&gt;xander_bakker&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;This is great. I'm working remotely and will secure more robust internet and update ArcMap (within 48 hours). The attachments and/or GUID are not necessary with this particular feature class after this stage of the workflow. I will work on this ASAP with results. Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 16:55:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117367#M4030</guid>
      <dc:creator>EthanDuke</dc:creator>
      <dc:date>2018-02-12T16:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Copy features a number of times based on a numeric field value</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117368#M4031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/58610"&gt;Ethan Duke&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the toolbox (10.6). If you have any problems upgrading to 10.6 or with the toolbox, just let me know and I see what I can do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 16:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/copy-features-a-number-of-times-based-on-a-numeric/m-p/117368#M4031</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-02-12T16:59:55Z</dc:date>
    </item>
  </channel>
</rss>

