Skip to main content

enter image description hereI am trying to get ModelBuilder to create a route for each row in a csv.csv file. Each row has one start and stop locations (Point A and Point B). I need to add both start and stop locations to a network layer to create a route. I then need to delete these stops, and iterate back through, creating a route for each record between each start and stop point. In the Add Locations tool help, I read that the Append Parameter might be what I need to use. In the tool dialog box, there is just a checkbox, but in the Python reference it says

APPEND—Adds APPEND — Adds the new network analysis objects to the existing set of objects in the selected sublayer. • CLEAR—Deletes

CLEAR — Deletes the existing network analysis objects and replaces them with the new objects.

I think I need to do both Append and Clear actions to get what I am trying to achieve but it is just a checkbox in ModelBuilder.

Will I need to use Python code to be able to append, then clear, stops in an iterator model?

I am not very strong writing Python Code and was hoping to use ModelBuilder to get what I need.

I added my model builder file for clarification. The problem lies in the Add Locations tool. It only accepts one pair of Lat Long/Lon coordinates

enter image description here

enter image description hereI am trying to get ModelBuilder to create a route for each row in a csv file. Each row has one start and stop locations (Point A and Point B). I need to add both start and stop locations to a network layer to create a route. I then need to delete these stops, and iterate back through, creating a route for each record between each start and stop point. In the Add Locations tool help, I read that the Append Parameter might be what I need to use. In the tool dialog box, there is just a checkbox, but in the Python reference it says

APPEND—Adds the new network analysis objects to the existing set of objects in the selected sublayer. • CLEAR—Deletes the existing network analysis objects and replaces them with the new objects.

I think I need to do both Append and Clear actions to get what I am trying to achieve but it is just a checkbox in ModelBuilder.

Will I need to use Python code to be able to append, then clear, stops in an iterator model?

I am not very strong writing Python Code and was hoping to use ModelBuilder to get what I need.

I added my model builder file for clarification. The problem lies in the Add Locations tool. It only accepts one pair of Lat Long coordinates

enter image description here

enter image description hereI am trying to get ModelBuilder to create a route for each row in a .csv file. Each row has one start and stop locations (Point A and Point B). I need to add both start and stop locations to a network layer to create a route. I then need to delete these stops, and iterate back through, creating a route for each record between each start and stop point. In the Add Locations tool help, I read that the Append Parameter might be what I need to use. In the tool dialog box, there is just a checkbox, but in the Python reference it says

APPEND — Adds the new network analysis objects to the existing set of objects in the selected sublayer.

CLEAR — Deletes the existing network analysis objects and replaces them with the new objects.

I think I need to do both Append and Clear actions to get what I am trying to achieve but it is just a checkbox in ModelBuilder.

Will I need to use Python code to be able to append, then clear, stops in an iterator model?

I am not very strong writing Python Code and was hoping to use ModelBuilder to get what I need.

I added my model builder file for clarification. The problem lies in the Add Locations tool. It only accepts one pair of Lat/Lon coordinates

enter image description here

added 234 characters in body
Source Link

Ienter image description hereI am trying to get ModelBuilder to create a route for each row in a csv file. Each row has one start and stop locations (Point A and Point B). I need to add both start and stop locations to a network layer to create a route. I then need to delete these stops, and iterate back through, creating a route for each record between each start and stop point. In the Add Locations tool help, I read that the Append Parameter might be what I need to use. In the tool dialog box, there is just a checkbox, but in the Python reference it says

• APPEND—Adds the new network analysis objects to the existing set of objects in the selected sublayer. • CLEAR—Deletes the existing network analysis objects and replaces them with the new objects.

I think I need to do both Append and Clear actions to get what I am trying to achieve but it is just a checkbox in ModelBuilder.

Will I need to use Python code to be able to append, then clear, stops in an iterator model?

I am not very strong writing Python Code and was hoping to use ModelBuilder to get what I need.

I added my model builder file for clarification. The problem lies in the Add Locations tool. It only accepts one pair of Lat Long coordinates

enter image description here

I am trying to get ModelBuilder to create a route for each row in a csv file. Each row has one start and stop locations (Point A and Point B). I need to add both start and stop locations to a network layer to create a route. I then need to delete these stops, and iterate back through, creating a route for each record between each start and stop point. In the Add Locations tool help, I read that the Append Parameter might be what I need to use. In the tool dialog box, there is just a checkbox, but in the Python reference it says

• APPEND—Adds the new network analysis objects to the existing set of objects in the selected sublayer. • CLEAR—Deletes the existing network analysis objects and replaces them with the new objects.

I think I need to do both Append and Clear actions to get what I am trying to achieve but it is just a checkbox in ModelBuilder.

Will I need to use Python code to be able to append, then clear, stops in an iterator model?

I am not very strong writing Python Code and was hoping to use ModelBuilder to get what I need.

enter image description here

enter image description hereI am trying to get ModelBuilder to create a route for each row in a csv file. Each row has one start and stop locations (Point A and Point B). I need to add both start and stop locations to a network layer to create a route. I then need to delete these stops, and iterate back through, creating a route for each record between each start and stop point. In the Add Locations tool help, I read that the Append Parameter might be what I need to use. In the tool dialog box, there is just a checkbox, but in the Python reference it says

• APPEND—Adds the new network analysis objects to the existing set of objects in the selected sublayer. • CLEAR—Deletes the existing network analysis objects and replaces them with the new objects.

I think I need to do both Append and Clear actions to get what I am trying to achieve but it is just a checkbox in ModelBuilder.

Will I need to use Python code to be able to append, then clear, stops in an iterator model?

I am not very strong writing Python Code and was hoping to use ModelBuilder to get what I need.

I added my model builder file for clarification. The problem lies in the Add Locations tool. It only accepts one pair of Lat Long coordinates

enter image description here

added 3 characters in body; edited tags; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

How do I use the Using Append Parameter in the Add Locations Network Analyst Tool in Model BuilderModelBuilder?

I am trying to get model builderModelBuilder to create a route for each row in a csv file. Each row has one start and stop locations (Point A and Point B). I need to add both start and stop locations to a network layer to create a route. I then need to delete these stops, and iterate back through, creating a route for each record between each start and stop point. In the Add Locations tool help, I read that the Append Parameter might be what I need to use. In the tool dialog box, there is just a checkbox, but in the Python reference it says

• APPEND—Adds the new network analysis objects to the existing set of objects in the selected sublayer. • CLEAR—Deletes the existing network analysis objects and replaces them with the new objects.

I think I need to do both Append and Clear actions to get what I am trying to achieve but it is just a checkbox in model builderModelBuilder. 

Will I need to use Python code to be able to append, then clear, stops in an iterator model? 

I am not very strong writing Python Code and was hoping to use model builderModelBuilder to get what I need. 

enter image description here

How do I use the Append Parameter in the Add Locations Network Analyst Tool in Model Builder?

I am trying to get model builder to create a route for each row in a csv file. Each row has one start and stop locations (Point A and Point B). I need to add both start and stop locations to a network layer to create a route. I then need to delete these stops, and iterate back through, creating a route for each record between each start and stop point. In the Add Locations tool help, I read that the Append Parameter might be what I need to use. In the tool dialog box, there is just a checkbox, but in the Python reference it says

• APPEND—Adds the new network analysis objects to the existing set of objects in the selected sublayer. • CLEAR—Deletes the existing network analysis objects and replaces them with the new objects.

I think I need to do both Append and Clear actions to get what I am trying to achieve but it is just a checkbox in model builder. Will I need to use Python code to be able to append, then clear, stops in an iterator model? I am not very strong writing Python Code and was hoping to use model builder to get what I need.enter image description here

Using Append Parameter in the Add Locations Network Analyst Tool in ModelBuilder?

I am trying to get ModelBuilder to create a route for each row in a csv file. Each row has one start and stop locations (Point A and Point B). I need to add both start and stop locations to a network layer to create a route. I then need to delete these stops, and iterate back through, creating a route for each record between each start and stop point. In the Add Locations tool help, I read that the Append Parameter might be what I need to use. In the tool dialog box, there is just a checkbox, but in the Python reference it says

• APPEND—Adds the new network analysis objects to the existing set of objects in the selected sublayer. • CLEAR—Deletes the existing network analysis objects and replaces them with the new objects.

I think I need to do both Append and Clear actions to get what I am trying to achieve but it is just a checkbox in ModelBuilder. 

Will I need to use Python code to be able to append, then clear, stops in an iterator model? 

I am not very strong writing Python Code and was hoping to use ModelBuilder to get what I need. 

enter image description here

Source Link
Loading