CadEditScope
from OpenCAD2D import CadEditScope
class CadEditScope(System.Object) ยท CadEditScope in the .NET reference
What an edit's action is given to write with: the document and the drawing, and the way to add an entity so that it is recorded. An entity of the drawing is changed through its own members (TransformBy, its setters, Erase); the edit's planned records say which.
Properties and fields
Database
@property
def Database(self) -> DxfDatabase
Gets the drawing.
Document
@property
def Document(self) -> CadDocument
Gets the document.
Methods
Added
def Added(self, space: CadSpace, entity: DxfEntity) -> None
Records an entity a call of the library added to a space by itself, as WblockCloneObjects adds its copies.
Append
def Append(self, space: CadSpace, entity: Any) -> Any
Adds an entity made in code to a space and records it as added.
IsHandled
def IsHandled(self, handle: str) -> bool
Gets whether the owner of an entity took its planned edit and made the change itself (a mark moved by the drawing that owns it), so that the action leaves that entity alone; false for an entity the presenter edits itself.
Record
def Record(self, record: CadEditRecord) -> None
Records a change the planned records did not name, found while writing.