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