CreateInvestigationPaneAsync Method
Create and activate a new knowledge graph investigation pane using a knowledge graph investigation.
Create and open an investigation pane
{
await QueuedTask.Run(() =>
{
var investigation = KnowledgeGraphInvestigationFactory.Instance.CreateInvestigation(url, "myInvestigation");
ProApp.Panes.CreateInvestigationPaneAsync(investigation);
});
}
Open an existing investigation
{
// open an existing investigation
var investigationProjectItems = Project.Current.GetItems<KnowledgeGraphInvestigationProjectItem>();
var investigationProjectItem = investigationProjectItems.FirstOrDefault(ipi => ipi.Name.Equals("myInvestigation"));
await QueuedTask.Run(() =>
{
KnowledgeGraphInvestigation investigation = investigationProjectItem.GetInvestigation();
ProApp.Panes.CreateInvestigationPaneAsync(investigation);
// or
investigation.OpenViewAsync();
});
// or
investigationProjectItem.OpenInvestigationPaneAsync();
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)
ArcGIS Pro version: 3.5 or higher.