ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace / TraceConfiguration Class / OutputCondition Property
Example

In This Topic
    OutputCondition Property
    In This Topic
    A conditional expression that determines which rows should be included in the trace results.
    Syntax
    Public Property OutputCondition As Condition
    public Condition OutputCondition {get; set;}
    Remarks
    Output conditions are applied after all other tracing calculations, including traversal, filters, and function calculation. The Condition can perform comparisons against network attributes (NetworkAttributeComparison), categories (CategoryComparison), or both. If this property and OutputAssetTypes are both null, all rows are returned. Otherwise, rows which match either of these criteria are returned.
    Example
    Create an output condition
    {
      // This routine creates an output condition to filter trace results to only include features with the "Service Point" category assigned
      static void CreateOutputFilter(TraceConfiguration traceConfiguration)
      {
        // Create an output category to filter the trace results to only include
        // features with the "Service Point" category assigned
        traceConfiguration.OutputCondition = new CategoryComparison(CategoryOperator.IsEqual, "Service Point");
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also