ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.KnowledgeGraph Namespace / KnowledgeGraphInvestigation Class / AddFilteredFindPathsConfiguration Method
The ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration to add to the investigation.
Example

In This Topic
    AddFilteredFindPathsConfiguration Method
    In This Topic
    Adds a ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration to this investigation. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub AddFilteredFindPathsConfiguration( _
       ByVal filteredFindPathsConfiguration As CIMFilteredFindPathsConfiguration _
    ) 
    public void AddFilteredFindPathsConfiguration( 
       CIMFilteredFindPathsConfiguration filteredFindPathsConfiguration
    )

    Parameters

    filteredFindPathsConfiguration
    The ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration to add to the investigation.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    The filteredFindPathsConfiguration is null.
    The filteredFindPathsConfiguration cannot be added to the investigation.
    Remarks
    Filtered find paths configuration names must be unique within an investigation. If the name of the ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration to be added already exists in the investigation, then a numerical suffix is applied to the name of the new ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration to ensure it is unique. This check is case insensitive.
    Example
    Add Filtered Find Paths Configuration
    {
      var newFFPConfig = new CIMFilteredFindPathsConfiguration();
      newFFPConfig.Name = "FFPConfig1";
      //Limit the set of origin entities to all entities of type POI and Supplier
      var poi_entity = new CIMFilteredFindPathsEntity();
      poi_entity.EntityTypeName = "POI";
      var supp_entity = new CIMFilteredFindPathsEntity();
      supp_entity.EntityTypeName = "Supplier";
    
      var originEntities = new List<CIMFilteredFindPathsEntity>();
      originEntities.Add(poi_entity);
      originEntities.Add(supp_entity);
    
      //Apply to the configuration origin entities filter
      newFFPConfig.OriginEntities = originEntities.ToArray();
    
      // access the currently active knowledge graph investigation view
      KnowledgeGraphInvestigationView activeView = KnowledgeGraphInvestigationView.Active;
      KnowledgeGraphInvestigation investigation = activeView?.Investigation;
      if (investigation != null)
      {
        await QueuedTask.Run(() =>
        {
          // add the new FFPConfig
          investigation.AddFilteredFindPathsConfiguration(newFFPConfig);
        });
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.7 or higher.
    See Also