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