UpdateFilteredFindPathsConfiguration Method
Updates the specified
ArcGIS.Core.CIM.CIMFilteredFindPathsConfiguration. This method must be called on the MCT. Use QueuedTask.Run.
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);
}
});
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)
ArcGIS Pro version: 3.7 or higher.