This sample illustrates how to build construction tools for KnowledgeGraph entity and relationships.
The sketch tool displays a UI on the overlay using the OverlayControlID property of the MapTool.
The UI requires the user to specify the source and destination entity types along with the relate type and the relate direction.
The tool uses the SketchTip property to direct the user to identify a single source entity. Once a source entity has been found, the SketchTip is updated to direct the user to identify destination entities.
Once destination entities have been found, the edit is performed for each source and destination entity pair.
Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <arcgisprosdk@esri.com>
Organization: Esri, https://www.esri.com
Date: 11/04/2024
ArcGIS Pro: 3.4
Visual Studio: 2022
.NET Target Framework: net8.0-windows
- Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the Releases page.
- In Visual Studio click the Build menu.Then select Build Solution.
- Launch the debugger to open ArcGIS Pro.
- ArcGIS Pro will open, select a project containing a link chart with a KnowledgeGraph.
- Open the Create features window and activate an entity template to see the custom construction tool for entities.
- Activate the custom construction tool and click on the link chart to create an entity.
- Open the Create features window and activate a relate template to see the custom construction tool for relationships.
- Activate the custom construction tool and move your mouse over the link chart. Note the SketchTip and cursor
- Hover over an entity and see the SketchTip and Cursor change.
- Click on an entity to identify it as the origin entity. Notice the SketchTip and the connecting line draw on the overlay as you move the mouse.
- Hover over a second entity. Notice the SketchTip, Cursor and overlay change.
- Click on the entity to identify it as the destination entity. The relationship record is created.
Home | API Reference | Requirements | Download | Samples