ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / NetworkDiagram Class / GetFeatureAttributes Method / GetFeatureAttributes(DiagramElementFilter,String[],Boolean,Boolean) Method
The DiagramElementFilter to filter the diagram elements to get attributes from.
Array of field names or alias names for the attributes to query in network source tables. Use keywords "SHAPE_Length" and "SHAPE_Area" to query shape length and shape area in any geodatabase. Use keywords "DiagramElement::SourceID" and "DiagramElement::Subtype" to query these attributes that are not in network source tables. Returned values for "DiagramElement::Subtype" 1 = standard element 2 = reduction junction 3 = connectivity association 4 = structural attachment 5 = reduction edge
Indicates whether to include attribute values for aggregated elements.
Indicates whether to use coded value names when returning attribute values.

In This Topic
    GetFeatureAttributes(DiagramElementFilter,String[],Boolean,Boolean) Method
    In This Topic
    Get feature attributes of elements and aggregations of this network diagram. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    filter
    The DiagramElementFilter to filter the diagram elements to get attributes from.
    attributeNames
    Array of field names or alias names for the attributes to query in network source tables. Use keywords "SHAPE_Length" and "SHAPE_Area" to query shape length and shape area in any geodatabase. Use keywords "DiagramElement::SourceID" and "DiagramElement::Subtype" to query these attributes that are not in network source tables. Returned values for "DiagramElement::Subtype" 1 = standard element 2 = reduction junction 3 = connectivity association 4 = structural attachment 5 = reduction edge
    addAggregatedElementValues
    Indicates whether to include attribute values for aggregated elements.
    useCodedValueNames
    Indicates whether to use coded value names when returning attribute values.

    Return Value

    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also