2022 Class
Changes 8
C

SketchEditScope

Description:
A SketchEditScope allows an application to create and maintain an editing session for a Sketch.
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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.EditScope
    Autodesk.Revit.DB.SketchEditScope
public class SketchEditScope : EditScope
Name Return Type Description Inherited From
C SketchEditScope(Document, String) None Instantiates a SketchEditScope object.
Name Return Type Description Inherited From
M IsSketchEditingSupported(ElementId) bool Checks whether sketch can be edited.
M Start(ElementId) None Starts a sketch edit mode.
M Cancel() None Cancels the edit scope. EditScope
M Commit(IFailuresPreprocessor) None Finishes the edit scope. EditScope
M Dispose() None Releases all resources used by the EditScope
Name Return Type Description Inherited From
P IsActive bool Tells if the EditScope is active. In other words, the EditScope has started but not committed/canceled yet. EditScope
P IsPermitted bool Tells if the edit scope is permitted to start. EditScope
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity. EditScope