KnowledgeGraphLayerIDSet Class
A collection of named object types and their corresponding list of records to represent a set of rows in a
KnowledgeGraphLayer.
Create an ID set from a SelectionSet
QueuedTask.Run(() =>
{
// get the selection set
var sSet = map.GetSelection();
// translate to an KnowledgeGraphLayerIDSet
// if the selectionset does not contain any KG entity or relationship records
// then idSet will be null
var idSet = KnowledgeGraphLayerIDSet.FromSelectionSet(sSet);
if (idSet == null)
return;
// you can use the idSet to create a new linkChart
// (using MapFactory.Instance.CreateLinkChart)
});
System.Object
ArcGIS.Desktop.Mapping.KnowledgeGraphLayerIDSet
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.3 or higher.