Skip to content

Files

Latest commit

4294fdc · Nov 6, 2024

History

History

ConstructionToolWithOptions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 23, 2017
Jun 23, 2017
Jun 21, 2022
Jun 21, 2022
Jun 21, 2022
Jun 21, 2022
Jun 21, 2022
Jun 21, 2022
Jun 21, 2022
Jun 21, 2022
Jun 21, 2022
Jun 21, 2022
May 6, 2024
Nov 6, 2024
May 6, 2024
Jun 23, 2017
Jun 21, 2022
Jun 21, 2022
Nov 6, 2024

ConstructionToolWithOptions

This sample illustrates how to build a construction tool with options allowing users to provide parameters at run-time.
Two samples are included.
The first is the BufferedLineTool. The line sketch geoemtry is buffered by a user defined distance to create a polygon feature.
The second sample is the CircleTool. A user defined radius is used to create a circular arc with the point sketch geometry as the centroid. This tool is registered with both the esri_editing_construction_polyline and esri_editing_construction_polygon categories allowing both polyline and polygon features to be created.
The CircleTool options follows the multiple tool options pattern (implementing ToolOptionsEmbeddableControl) allowing the users to select multiple templates in the manage templates dialog and change tool option values for those templates. The BufferedLineTool sample follows the single use pattern.

View it live

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

Resources

Community Sample Resources

Samples Data

  • Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the Releases page.

How to use the sample

  1. Download the Community Sample data (see under the 'Resources' section for downloading sample data)
  2. Make sure that the Sample data is unzipped in c:\data
  3. The project used for this sample is 'C:\Data\FeatureTest\FeatureTest.aprx'
  4. In Visual Studio click the Build menu.Then select Build Solution.
  5. Launch the debugger to open ArcGIS Pro.
  6. ArcGIS Pro will open, select the FeatureTest.aprx project
  7. Select the 'Edit' tab on the ArcGIS Pro ribbon and 'Create' new features
  8. On the 'Create Features' pane select the test polygon feature layer to see the 'Buffered Line' tool
    UI
  9. Select the tool and see the Options page displaying the buffer distance
    UI
  10. Enter a buffer distance and sketch a line.See a buffer of the sketched line used to generate a new polygon feature.

      ArcGIS Pro SDK for Microsoft .NET Framework              Home | API Reference | Requirements | Download | Samples