ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.KnowledgeGraph Namespace / KnowledgeGraphInvestigationProjectItem Class
Members Example

In This Topic
    KnowledgeGraphInvestigationProjectItem Class
    In This Topic
    Represents a knowledge graph investigation project item.
    Object Model
    KnowledgeGraphInvestigationProjectItem ClassKnowledgeGraph ClassKnowledgeGraphInvestigation ClassTimeInstant Class
    Syntax
    Example
    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(async () =>
    {
      KnowledgeGraphInvestigation investigation = investigationProjectItem.GetInvestigation();
      await ProApp.Panes.CreateInvestigationPaneAsync(investigation);
    });
    Activate an existing investigation view
    //Confirm if investigation exists as a project item
    KnowledgeGraphInvestigationProjectItem investigationItem = Project.Current.GetItems<KnowledgeGraphInvestigationProjectItem>().FirstOrDefault(
                                                          item => item.Name.Equals("myInvestigation"));
    if (investigationItem != null)
    {
      KnowledgeGraphInvestigation investigation = await QueuedTask.Run(() => investigationItem.GetInvestigation());
    
      // see if a view is already open that references the same investigation
      foreach (var investigationPane in ProApp.Panes.OfType<IKnowledgeGraphInvestigationPane>())
      {
        //if there is a match, activate the view
        if (investigationPane.InvestigationView.Investigation == investigation)
        {
          (investigationPane as Pane).Activate();
          return;
        }
      }
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase
          ArcGIS.Desktop.Core.Item
                      ArcGIS.Desktop.KnowledgeGraph.KnowledgeGraphBaseProjectItem
                         ArcGIS.Desktop.KnowledgeGraph.KnowledgeGraphInvestigationProjectItem

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also