ArcGIS Pro 2.8 API Reference Guide
QueryDiagramElements(DiagramElementQueryByObjectIDs) Method

ArcGIS.Core.Data.UtilityNetwork.NetworkDiagrams Namespace > NetworkDiagram Class > QueryDiagramElements Method : QueryDiagramElements(DiagramElementQueryByObjectIDs) Method
The DiagramElementQueryByObjectIDs used to search for diagram elements.
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 10, Windows 8.1

See Also

Reference

NetworkDiagram Class
NetworkDiagram Members
Overload List