Hi,
I am writing a script with ArcPy to look at modelling closed
roads and the length of possible diversions. This is being done with the network analyst
tools.
The basic process I am using is to:
- Create a new route analysis
- Add route end points and a polygon barriers to
block the road in question - Solve the problem to create the result of an alternative
route to the closed road. - Save this result to a geodatabase feature class.
I have created a script that works well for a single
polyline feature. However, when I put
this code into a ‘for loop’ to run over multiple polylines, I get errors. The resulting feature class has route results