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
(ServiceTim is the field name in road's shapefile attributes table).
When i try to solve the vrp i get the following message;
is there anything wrong with the variables names? Any ideas?