ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Arcade Namespace / IArcadeScriptEngine Interface / CreateEvaluator Method
Example

In This Topic
    CreateEvaluator Method (IArcadeScriptEngine)
    In This Topic
    Creates an instance of an Arcade script evaluator. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    expressionInfo
    profile
    Exceptions
    ExceptionDescription
     
    Exception thrown when there has been a parsing error
    Example
    var expressionInfo = new CIMExpressionInfo()
    {
      Expression = "$feature.objectid",
      ExpressionReturnType = CIMExpressionReturnType.String
    };
                
    try
    {
      using (var arcade = ArcadeScriptEngine.Instance.CreateEvaluator(expressionInfo, ArcadeProfile.Visualization))
      {
      
      }
    }
    catch (ParsingException ex)
    {
      System.Diagnostics.Trace.WriteLine(ex);
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also