ArcGIS Pro 3.7 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 NotInheritable Class FindResultItem 
    public sealed class FindResultItem 
    Example
    Find Diagram Features for a set of utility network rows
    {
      // Given a list of utility network feature GlobalIDs, find the corresponding diagram features in a network diagram
      static 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 (FindResultItem 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
    {
      // Given a list of diagram feature GlobalIDs, find the corresponding utility network rows in a network diagram
      static void FindDiagramRows(NetworkDiagram diagram, List<Guid> globalIDs)
      {
        FindNetworkRowQuery rowQuery = new FindNetworkRowQuery();
        rowQuery.DiagramFeatureGlobalIDs = globalIDs;
        rowQuery.AddAggregations = true;
    
        IReadOnlyList<FindResultItem> rows = diagram.FindNetworkRows(rowQuery);
        foreach (FindResultItem 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
    {
      // Find the utility network rows used to create a network diagram
      static void FindInitialNetworkRows(NetworkDiagram diagram)
      {
        IReadOnlyList<FindResultItem> rows = diagram.FindInitialNetworkRows();
        foreach (FindResultItem 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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also