A SketchEditScope allows an application to create and maintain an editing session for a Sketch.
Inheritance Hierarchy
System.ObjectAutodesk.Revit.DB.EditScope
Autodesk.Revit.DB.SketchEditScope
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public class SketchEditScope : EditScope
The SketchEditScope type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | SketchEditScope | Instantiates a SketchEditScope object. |
Properties
Name | Description | |
---|---|---|
![]() | IsActive |
Tells if the EditScope is active. In other words, the EditScope has started but not committed/canceled yet.
(Inherited from EditScope) |
![]() | IsPermitted |
Tells if the edit scope is permitted to start.
(Inherited from EditScope) |
![]() | IsValidObject |
Specifies whether the .NET object represents a valid Revit entity.
(Inherited from EditScope) |
Methods
Name | Description | |
---|---|---|
![]() | Cancel |
Cancels the edit scope.
(Inherited from EditScope) |
![]() | Commit |
Finishes the edit scope.
(Inherited from EditScope) |
![]() | Dispose | (Inherited from EditScope) |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | IsElementWithoutSketch | Validates if an element can have a sketch but currently does not. |
![]() | IsSketchEditingSupported | Checks whether sketch can be edited. |
![]() | IsSketchEditingSupportedForSketchBasedElement | Checks whether the element supports sketch editing. |
![]() | Start | Starts a sketch edit mode. |
![]() | StartWithNewSketch | Starts a sketch edit mode for an element which, at this moment, doesn't have a sketch. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |