ArcGIS Pro 3.1 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 Condition OutputCondition {get; set;}
    Public Property OutputCondition As Condition
    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
    // 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, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also