Select to view content in your preferred language

Iterate over a rows and copy the feature X number of times using Modelbuilder

127
1
Jump to solution
3 weeks ago
MPach
by
Frequent Contributor

I'm trying to iterate over about 5000 rows in a feature class and copy those features X number of times. The X number of times I need to copy them is stored in another field in same feature class called "Number of times to copy". Here's what the table looks like. 

MPach_0-1737577616009.png

I'm not certain which Modelbuilder iterate tool will accomplish this best. I was thinking maybe iterate row selection. Any help with this is appreciated. 

0 Kudos
1 Solution

Accepted Solutions
MPach
by
Frequent Contributor

Update: I'm going to leave this here just in case anyone finds a way to do it, but I decided to go with another approach because when I run into situations like this it's usually because I'm overthinking the problem and there is usually an easier solution. In this case the easier solution is to take the points that I already have and get the X,Y for them. Then I can link those points to the table I have of 20k records that have repeated addresses. I'll join the feature to the table by the common address fields, which should give me the X,Y on each record. Then I plan to use the XY table to Point geoprocessing tool to create all the points. Finally, I'll spread the point using the Disperse Markers geoprocessing tool to separate the points.  

View solution in original post

0 Kudos
1 Reply
MPach
by
Frequent Contributor

Update: I'm going to leave this here just in case anyone finds a way to do it, but I decided to go with another approach because when I run into situations like this it's usually because I'm overthinking the problem and there is usually an easier solution. In this case the easier solution is to take the points that I already have and get the X,Y for them. Then I can link those points to the table I have of 20k records that have repeated addresses. I'll join the feature to the table by the common address fields, which should give me the X,Y on each record. Then I plan to use the XY table to Point geoprocessing tool to create all the points. Finally, I'll spread the point using the Disperse Markers geoprocessing tool to separate the points.  

0 Kudos