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

In This Topic
    FindResultItem Class
    In This Topic
    Holds a collection of diagram features or network rows that result from a diagram query.
    Syntax
    public sealed class FindResultItem 
    Public NotInheritable Class FindResultItem 
    Example
    Find Diagram Features for a set of utility network rows
    public void FindDiagramFeatures(NetworkDiagram diagram, List<Guid> globalIDs)
    {
      FindDiagramFeatureQuery featureQuery = new FindDiagramFeatureQuery();
      featureQuery.NetworkRowGlobalIDs = globalIDs;
      featureQuery.AddAggregations = true;
      featureQuery.AddConnectivityAssociations = true;
      featureQuery.AddStructuralAttachments = true;
    
      IReadOnlyList<FindResultItem> features = diagram.FindDiagramFeatures(featureQuery);
      foreach (var findFeature in features)
      {
        long objectID = findFeature.ObjectID;
        Guid guid = findFeature.GlobalID;
        GeometryType geometryType = findFeature.GeometryType;
        int sourceID = findFeature.SourceID;
      }
    }
    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;
      }
    }
    Find Initial Network Rows Used to create a Network Diagram
    public void FindInitialNetworkRows(NetworkDiagram diagram)
    {
      IReadOnlyList<FindResultItem> rows = diagram.FindInitialNetworkRows();
      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.FindResultItem

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also