AnsweredAssumed Answered

Travel entire streets segments

Question asked by sotriant on Dec 18, 2017
Latest reply on Jan 29, 2018 by sotriant

I m using ArcGis 10.4.1 and network analyst extension, in the network dataset properties-> Attributes. I created an attribute called PromoteStops1, next in Script Evaluators, i used the following script to force vrp solver to travel entire streets segments. (The basic idea is that if a street has deliveries you it better not to leave that street until there are no more deliveries). The deliveries have service time so this script works as follows;

restricted = False

a = Turn.Angle

If a >= 45 Then If fromEdge.AttributeValueByName("ServiceTim")= 0.5 And toEdge.AttributeValueByName("ServiceTim") = 0.5 Then

restricted = True

End If End If

enter image description here

enter image description here

(ServiceTim is the field name in road's shapefile attributes table).

When i try to solve the vrp i get the following message;enter image description here

is there anything wrong with the variables names? Any ideas?