how to set up Script Evaluator for an attribute

06-04-2013 08:45 PM
New Contributor III

I'd like to create a bus routable network with 2 different travel time as different bus speed design.
Option1: create Minute_speed1 and Minute_speed2 fields and calculate values. Then set TYPE as FIELD in evaluators
Option2: my though is: choose evaluator type as VB Script, then change the speed value inside Script Evaluator window. Is it possible to do it this way? If yes, how do I set up inside Script Evaluator? as i used the same calculation expression on option1, then found out they're different..:-)

Tags (2)
0 Kudos
2 Replies
New Contributor
Hi ,I have the same problem now.I add a parameter to a restriction attribute.but I do not know how to use the parameter in the vb sciript.does any one know?thanks all!
0 Kudos
Occasional Contributor II

It is same as a script for any attribute. The result of the script will be the value in the attribute. And this value of attribute is taken into the evaluator at 'run-time' (the script is also evaluated on run-time).

Therefore you could define an attribute under the script evaluator . This attribute, in its field calculator, has a VB or Python script. For example let us say the calculated value of the script is 0, and for the evaluator, if 0 means not traversable, then the result will not include that segment into its traversable path.

This script can also make complex calculations from many attributes and give a result that is evaluated. For example, if you calculate the travel time from various attributes like speed limits, slope, background traffic etc and if the result for 'that' segment comes to be 10 minutes, and say in evaluator you had a condition that dont traverse link segments when travel time is more �?� 10minutes, the solver will then avoid this route.

0 Kudos