title: arcmap network analyst iteration over multiple files using model builder
body: <p>I have 10+ files that I want to add to ArcMap then do some spatial analysis in an automated fashion. The files are in csv format which are located in one folder and named in order as "TTS11_path_points_1" to "TTS11_path_points_13". The steps are as follows:</p>
  
  <ol>
  <li>Make XY event layer</li>
  <li>Export the XY table to a point shapefile using the feature class to feature class tool</li>
  <li>Project the shapefiles</li>
  <li>Snap the points to another line shapfile</li>
  <li>Make a Route layer - network analyst</li>
  <li>Add locations to stops using the output of step 4</li>
  <li>Solve to get routes between points based on a RouteName field</li>
  </ol>
  
  <p>I tried to attach a snapshot of the model builder to show the steps visually but I don't have enough points to do so.</p>
  
  <p>I have two problems:</p>
  
  <ol>
  <li><p>How do I iterate this procedure over the number of files that I have?</p></li>
  <li><p>How to make sure that every time the output has a different name so it doesn't overwrite the one form the previous iteration?</p></li>
  </ol>
  
  <p>Your help is much appreciated.</p>