ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / NetworkDiagram Class / QueryDiagramElements Method / QueryDiagramElements(DiagramElementQueryByObjectIDs) Method
The DiagramElementQueryByObjectIDs used to search for diagram elements.

In This Topic
    QueryDiagramElements(DiagramElementQueryByObjectIDs) Method
    In This Topic
    Query diagram elements contained in this network diagram. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Overloads Function QueryDiagramElements( _
       ByVal query As DiagramElementQueryByObjectIDs _
    ) As DiagramElementQueryResult

    Parameters

    query
    The DiagramElementQueryByObjectIDs used to search for diagram elements.

    Return Value

    A DiagramElementQueryResult containing the queried diagram elements.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also