Skip to content

EditScope

Public Class

The base class for a scope object that provides special access and limitations related to editing certain elements.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.EditScope
Autodesk.Revit.DB.Architecture.TopographyEditScope
Autodesk.Revit.DB.SketchEditScope
Autodesk.Revit.DB.StairsEditScope

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class EditScope : IDisposable

The EditScope type exposes the following members.

Properties

Name

Description


Public Property
IsActive

Tells if the EditScope is active. In other words, the EditScope has started but not committed/canceled yet.


Public Property
IsPermitted

Tells if the edit scope is permitted to start.


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Methods

Name

Description


Public Method
Cancel

Cancels the edit scope.


Public Method
Commit

Finishes the edit scope.


Public Method

Releases all resources used by the EditScope


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


Remarks

Derivations of this class provide specific functionality to manage edit modes for specific purposes.