ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / FindDiagramFeatureQuery Class
Members Example

In This Topic
    FindDiagramFeatureQuery Class
    In This Topic
    Represents a find diagram feature query. This query is used to obtain diagram features from a set of utility network row ids.
    Syntax
    public sealed class FindDiagramFeatureQuery 
    Public NotInheritable Class FindDiagramFeatureQuery 
    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;
      }
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.Data.NetworkDiagrams.FindDiagramFeatureQuery

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also