Skip to content
Uma Harano edited this page Feb 24, 2015 · 1 revision

Lab 5: Edit Tool

###What you learn in this lab

  • Add sketch tool to edit galleries
  • Use of the sketch geometry for ancillary geometry manipulation
  • Edit events

Estimated completion time: 20 minutes


##Step 1: Create a sketch tool for advanced feature manipulation

  • Download the EditingTools.pkgx from ArcGIS Online and save the project.
  • CutWithoutSelection.cs as an ArcObjects example brought forward
  • DAML for modify category and gallery placement
  • Core.Data and editoperation

##Step 2: Create a context specific sketch tool

  • Open DensifyButton.cs
  • Use GeometryEngine to manipulate sketch geometry
  • DAML to place into the right context location

##Step 3: Listen and react to editor events

  • Open EditToolModule.cs
  • Go through the various method to subscribe to events
  • TrackEditEvents function is where the magic happens
  • Optional: toggle the event listening to backstage property page
Clone this wiki locally