Application: SketchEditScope
Revit Platform: All
Revit Version: 2020.0
First Released For: 2020.0
Programming Language: C#
Skill Level: Medium
Category: Geometry, Elements
Type: ExternalCommand

Subject: SketchEditScope
Summary: 
An example of how to edit curves in sketches and add dimensions to the sketch using SketchEditScope. 

Classes:
Autodesk.Revit.UI.IExternalCommand
Autodesk.Revit.DB

Project Files: 
Command.cs
It contains the class Command which inherits from interface IExternalCommand and implements the Execute method.
AddWall.cs
Creates a simple wall with a profile sketch.
WallSketchEditor.cs
    Provides a class that has methods to edit the sketch of a wall generated with AddWall. 

Description: 
This sample provides following functionalities.
-	Create a wall programmatically.
-	Shows how to automatically replace an edge of a sketch and add a hole with SketchEditScope feature.  
-	Shows how to add dimensions to the sketch programmatically. 

Instructions: 
Open Revit application and execute the command.
1.	Create a wall where the sketch is automatically edited.
Expected result: A wall with an arc replaces the top boundary and a hole appears in the profile.