Table of Contents

CadEditResult

from OpenCAD2D import CadEditResult

class CadEditResult(System.Object) ยท CadEditResult in the .NET reference

What came of an edit: whether it was made and, where it was not, why.

Properties and fields

Message

.NET

@property
def Message(self) -> str | None

Gets why the edit was not made, as the command line shows it; null when it was made.

Records

.NET

@property
def Records(self) -> System.Collections.Generic.IReadOnlyList[CadEditRecord]

Gets the records of the edit made; empty when it was not.

Refused

.NET

@property
def Refused(self) -> bool

Gets whether the edit was refused before anything was written, by the edit gate or by a check of the edit's own.

Succeeded

.NET

@property
def Succeeded(self) -> bool

Gets whether the edit was made.

Methods

Refuse

.NET

@staticmethod
def Refuse(message: str) -> CadEditResult

Makes the result of an edit refused before anything was written, as a check of the window refuses one, so that it is reported as the document's own refusals are.

ToString

.NET

def ToString(self) -> str