Share

SketchEditScope Class

A SketchEditScope allows an application to create and maintain an editing session for a Sketch.

Inheritance Hierarchy

System.Object
  Autodesk.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

 NameDescription
Public methodSketchEditScope Instantiates a SketchEditScope object.

Properties

 NameDescription
Public propertyIsActive Tells if the EditScope is active. In other words, the EditScope has started but not committed/canceled yet.
(Inherited from EditScope)
Public propertyIsPermitted Tells if the edit scope is permitted to start.
(Inherited from EditScope)
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
(Inherited from EditScope)

Methods

 NameDescription
Public methodCancel Cancels the edit scope.
(Inherited from EditScope)
Public methodCommit Finishes the edit scope.
(Inherited from EditScope)
Public methodDispose
(Inherited from EditScope)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsElementWithoutSketch Validates if an element can have a sketch but currently does not.
Public methodIsSketchEditingSupported Checks whether sketch can be edited.
Public methodIsSketchEditingSupportedForSketchBasedElement Checks whether the element supports sketch editing.
Public methodStart Starts a sketch edit mode.
Public methodStartWithNewSketch Starts a sketch edit mode for an element which, at this moment, doesn't have a sketch.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

Remarks

Start/end of a SketchEditScope will start/end a transaction group. After a SketchEditScope is started, an application can start transactions and edit the sketch. Individual transactions the application creates inside SketchEditScope will not appear in the undo menu. All transactions committed during the edit mode will be merged into a single one which will bear the given name passed into SketchEditScope constructor.

See Also

Reference

Was this information helpful?