Delete a row in in a loop using model builder

1083
3
09-03-2016 08:38 PM
IsmaeelAbdulrahman
New Contributor III

Hi, I have a model builder with a point-layer input. My objective is to take every row from the input once a time and apply some functions and then go back to the second row (i.e. I have a loop) updating the old layer (delete the first row). What tool should I place after the input layer to take a single row (an element) once a time and then go back to the second and do the rest. The input name in the picture is 'sort'.

Any idea or example will be appreciated it. Thanks.

Tags (1)
0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

This is the only tool that comes to mind... if you really need to delete it

Delete Features—Help | ArcGIS for Desktop which I don't see the purpose, perhaps you want an iterator

A quick tour of using iterators—Help | ArcGIS for Desktop 

An overview of the Iterator toolset—Help | ArcGIS for Desktop 

Iterate Row Selection—Help | ArcGIS for Desktop 

plus a few other links

IsmaeelAbdulrahman
New Contributor III

Thanks Dan, I am new and not good in programming and still I am trying to finding someway to do it by using only the blocks (functions) available in the builder.

0 Kudos
DanPatterson_Retired
MVP Emeritus

yes, that is why I recommended them since tools can be used in modelbuilder and iterators can only be used in models

0 Kudos