Skip to content

Commit

Permalink
Add new Replace Sketch sample
Browse files Browse the repository at this point in the history
  • Loading branch information
arcgisprosdk committed Apr 2, 2016
1 parent ca55bc3 commit 60d31f3
Show file tree
Hide file tree
Showing 141 changed files with 288 additions and 237 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Content/ArcGISOnline/ArcGISOnlineConnect/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Content/ExcelDropHandler/ExcelDropHandler (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Content
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Content/ExcelDropHandler/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Content
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Content
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Content
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Content/WorkwithProjects/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Language: C#
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Content/WorkwithProjects/WorkwithProjects (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Language: C#
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion CoreHost/CoreHostGDB/CoreHostGDB (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Console
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
30 changes: 0 additions & 30 deletions CoreHost/CoreHostGDB/CoreHostGDB.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CoreHost/CoreHostGDB/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Console
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion CoreHost/CoreHostSample/CoreHostSample (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Console
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion CoreHost/CoreHostSample/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Console
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion DataReviewer/arcgis_pro_data_reviewer_addin/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Language: C#
Subject: $subject$
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Language: C#
Subject: $subject$
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Editing/ConstructionTool/ConstructionTool (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Editing/ConstructionTool/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Editing/DivideLines/DivideLines (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Editing/DivideLines/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Editing/ExtendTool/ExtendTool (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Editing/ExtendTool/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Editing/MainConnectorManhole/MainConnectorManhole (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
2 changes: 1 addition & 1 deletion Editing/MainConnectorManhole/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 3/17/2016
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```
Expand Down
1 change: 1 addition & 0 deletions Editing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This folder contains ArcGIS Pro Add-In Samples that fall under the 'Editing' top
* [DivideLines (c#)](../../../tree/master/Editing/DivideLines)
* [ExtendTool (c#)](../../../tree/master/Editing/ExtendTool)
* [MainConnectorManhole (c#)](../../../tree/master/Editing/MainConnectorManhole)
* [ReplaceSketch (c#)](../../../tree/master/Editing/ReplaceSketch)
* [UpdateAttributesWithSketch (c#)](../../../tree/master/Editing/UpdateAttributesWithSketch)


Expand Down
41 changes: 23 additions & 18 deletions Editing/ReplaceSketch/Module1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,29 @@

namespace ReplaceSketch
{
/// <summary>
/// This sample adds the ReplaceSketch command to the sketch context menu.
/// This allows you to add the shape of a line or polygon to the edit sketch by right clicking on the feature and choosing this command.
/// It is equivalent to the ArcMap editing sketch context menu item.
/// </summary>
/// <remarks>
/// To install this add-in:
/// 1. In Visual Studio click the Build menu. Then select Build Solution.
///
/// The replace sketch functionality is useful when you want to create a sketch from an underlying feature.
/// For example you may want to split a polygon with an underlying road or stream.
/// To do this you would:
/// 1. Select a polygon to split.
/// 2. Activate the editor split tool.
/// 3. Right-click over a whole line feature that pass through the polygon and select ReplaceSketch.
/// 4. Continue or adjust the sketch as necessary then finish the sketch to use it as the splitting line.
/// </remarks>
internal class Module1 : Module
/// <summary>
/// This sample adds the ReplaceSketch command to the sketch context menu.
/// This allows you to add the shape of a line or polygon to the edit sketch by right clicking on the feature and choosing this command.
/// It is equivalent to the ArcMap editing sketch context menu item.
/// </summary>
/// <remarks>
/// To install this add-in:
/// 1. In Visual Studio click the Build menu. Then select Build Solution.
///
/// The replace sketch functionality is useful when you want to create a sketch from an underlying feature.
/// For example you may want to split a polygon with an underlying road or stream.
/// To do this you would:
/// 2. Select a polygon to split.
/// 3. Activate the editor split tool.
/// ![UI](Screenshots/Screenshot1.png)
/// 4. Right-click over a whole line feature that passes through the polygon
/// ![UI](Screenshots/Screenshot2.png)
/// 5. And select ReplaceSketch.
/// ![UI](Screenshots/Screenshot3.png)
/// 6. Continue or adjust the sketch as necessary then finish the sketch to use it as the splitting line.
/// ![UI](Screenshots/Screenshot4.png)
/// </remarks>
internal class Module1 : Module
{
private static Module1 _this = null;

Expand Down
63 changes: 63 additions & 0 deletions Editing/ReplaceSketch/ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
##ReplaceSketch

<!-- TODO: Write a brief abstract explaining this sample -->
This sample adds the ReplaceSketch command to the sketch context menu.
This allows you to add the shape of a line or polygon to the edit sketch by right clicking on the feature and choosing this command.
It is equivalent to the ArcMap editing sketch context menu item.



<a href="http://pro.arcgis.com/en/pro-app/sdk/" target="_blank">View it live</a>

<!-- TODO: Fill this section below with metadata about this sample-->
```
Language: C#
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 4/1/2016
ArcGIS Pro: 1.2
Visual Studio: 2013, 2015
```

##Resources

* [API Reference online](http://pro.arcgis.com/en/pro-app/sdk/api-reference)
* <a href="http://pro.arcgis.com/en/pro-app/sdk/" target="_blank">ArcGIS Pro SDK for .NET (pro.arcgis.com)</a>
* [arcgis-pro-sdk-community-samples](http://github.com/Esri/arcgis-pro-sdk-community-samples)
* [ArcGIS Pro DAML ID Reference](http://github.com/Esri/arcgis-pro-sdk/wiki/ArcGIS Pro DAML ID Reference)
* [FAQ](http://github.com/Esri/arcgis-pro-sdk/wiki/FAQ)
* [ArcGIS Pro SDK icons](https://github.com/Esri/arcgis-pro-sdk/releases/tag/1.2.0.5023)
* [ProConcepts: ArcGIS Pro Add in Samples](https://github.com/Esri/arcgis-pro-sdk-community-samples/wiki/ProConcepts-ArcGIS-Pro-Add-in-Samples)
* [Sample data for ArcGIS Pro SDK Community Samples](https://github.com/Esri/arcgis-pro-sdk-community-samples/releases)

![ArcGIS Pro SDK for .NET Icons](http://esri.github.io/arcgis-pro-sdk/images/Home/Image-of-icons.png "ArcGIS Pro SDK Icons")

##How to use the sample
<!-- TODO: Explain how this sample can be used. To use images in this section, create the image file in your sample project's screenshots folder. Use relative url to link to this image using this syntax: ![My sample Image](FacePage/SampleImage.png) -->
To install this add-in:

1. In Visual Studio click the Build menu. Then select Build Solution.

The replace sketch functionality is useful when you want to create a sketch from an underlying feature.
For example you may want to split a polygon with an underlying road or stream.
To do this you would:
2. Select a polygon to split.
3. Activate the editor split tool.
![UI](Screenshots/Screenshot1.png)
4. Right-click over a whole line feature that passes through the polygon
![UI](Screenshots/Screenshot2.png)
5. And select ReplaceSketch.
![UI](Screenshots/Screenshot3.png)
6. Continue or adjust the sketch as necessary then finish the sketch to use it as the splitting line.
![UI](Screenshots/Screenshot4.png)



[](Esri Tags: ArcGIS-Pro-SDK)
[](Esri Language: C-Sharp)​

<p align = center><img src="http://esri.github.io/arcgis-pro-sdk/images/ArcGISPro.png" alt="pre-req" align = "top" height = "20" width = "20" >
<b> ArcGIS Pro 1.2 SDK for Microsoft .NET Framework</b>
</p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Home](https://github.com/Esri/arcgis-pro-sdk/wiki) | <a href="http://pro.arcgis.com/en/pro-app/sdk" target="_blank">ArcGIS Pro SDK</a> | <a href="http://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html" target="_blank">API Reference</a> | [Requirements](#requirements) | [Download](#installing-arcgis-pro-sdk-for-net) | <a href="http://github.com/esri/arcgis-pro-sdk-community-samples" target="_blank">Samples</a>
Loading

0 comments on commit 60d31f3

Please sign in to comment.