This document is archived and information here might be outdated.  Recommended version.


INetworkScriptEvaluator Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkScriptEvaluator Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkScriptEvaluator Interface

Provides access to members that specify the properties of a network attribute evaluator whose values are derived from VBScript expressions.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Name Description
Method GetExpression Gets the VBScript calculator expression and pre-logic used to derive the values for this network evaluator.
Method SetExpression Sets the VBScript calculator expression and pre-logic used to derive the values for this network evaluator.

CoClasses that implement INetworkScriptEvaluator

CoClasses and Classes Description
NetworkScriptEvaluator A container for describing a network attribute evaluator whose values are derived from VBScript expressions.

Remarks

The INetworkScriptEvaluator interface accesses the code used by a NetworkScriptEvaluator object for calculating the attribute value for a network element.  Any setup computations needed prior to calculate the attribute value are specified in the preLogic parameter.  The value of the attribute is computed from the expression.

The example below shows the preLogic and expression for penalizing all left turns 20 seconds:

  addedTime=0
        a=Turn.Angle
        If a > 210 And a < 330 Then
          addedTime=20
        End If
     addedTime