ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / FindNetworkRowQuery Class
Members Example

In This Topic
    FindNetworkRowQuery Class
    In This Topic
    Represents a find network row query. This query is used to obtain utility network rows from a set of diagram feature ids.
    Syntax
    public sealed class FindNetworkRowQuery 
    Public NotInheritable Class FindNetworkRowQuery 
    Example
    Find Utility Network Rows for a set of diagram features
    public void FindDiagramRows(NetworkDiagram diagram, List<Guid> globalIDs)
    {
      FindNetworkRowQuery rowQuery = new FindNetworkRowQuery();
      rowQuery.DiagramFeatureGlobalIDs = globalIDs;
      rowQuery.AddAggregations = true;
    
      IReadOnlyList<FindResultItem> rows = diagram.FindNetworkRows(rowQuery);
      foreach (var findRow in rows)
      {
        long objectID = findRow.ObjectID;
        Guid guid = findRow.GlobalID;
        GeometryType geometryType = findRow.GeometryType;
        int sourceID = findRow.SourceID;
      }
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.Data.NetworkDiagrams.FindNetworkRowQuery

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also