ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / FindDiagramFeatureQuery Class / AddConnectivityAssociations Property
Example

In This Topic
    AddConnectivityAssociations Property
    In This Topic
    Indicates whether connectivity associations are included.
    Syntax
    public bool AddConnectivityAssociations {get; set;}
    Public Property AddConnectivityAssociations As Boolean
    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;
      }
    }
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also