ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.KnowledgeGraph Namespace / KnowledgeGraphInvestigation Class / UpdateFilteredFindPathsConfiguration Method
The ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration to update.
Example

In This Topic
    UpdateFilteredFindPathsConfiguration Method
    In This Topic
    Updates the specified ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub UpdateFilteredFindPathsConfiguration( _
       ByVal filteredFindPathsConfiguration As CIMFilteredFindPathsConfiguration _
    ) 
    public void UpdateFilteredFindPathsConfiguration( 
       CIMFilteredFindPathsConfiguration filteredFindPathsConfiguration
    )

    Parameters

    filteredFindPathsConfiguration
    The ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration to update.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    The filteredFindPathsConfiguration is null.
    The filteredFindPathsConfiguration does not exist in the investigation.
    Remarks
    Use this UpdateFilteredFindPathsConfiguration method to change any of the properties of the ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration with the exception of ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration.Name. Use RenameFilteredFindPathsConfiguration to alter the name of a Filtered Find Paths Configuration.
    Example
    Update Filtered Find Paths Configuration
    {
      // access the currently active knowledge graph investigation view
      KnowledgeGraphInvestigationView activeView = KnowledgeGraphInvestigationView.Active;
      KnowledgeGraphInvestigation investigation = activeView?.Investigation;
      if (investigation != null)
      {
        await QueuedTask.Run(() =>
        {
          // update FFPConfig properties
          var myFFPConig = investigation.GetFilteredFindPathsConfiguration("FFPConfig1");
          if (myFFPConig != null)
          {
            //Limit the set of origin entities to just a specific POI entity
            var poi_entity = new CIMFilteredFindPathsEntity();
            poi_entity.EntityTypeName = "POI";
            poi_entity.ID = "{EC2A2D91-B09C-4CF6-93A3-51D6527CF51E}";//upper case guid with "{}"s
    
            var originEntities = new List<CIMFilteredFindPathsEntity>();
            originEntities.Add(poi_entity);
    
            //Apply to the configuration origin entities filter
            myFFPConig.OriginEntities = originEntities.ToArray();
    
            investigation.UpdateFilteredFindPathsConfiguration(myFFPConig);
          }
        });
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also