CadRefEdit
from OpenCAD2D import CadRefEdit
class CadRefEdit(System.Object) ยท CadRefEdit in the .NET reference
The in-place edit open on a drawing (CadDocument.RefEdit): the block being edited, the references that lead to it, the working set and the settings the edit opened with.
Properties and fields
NotEditing
NotEditing: ClassVar[str]
What REFSET and REFCLOSE say where no reference is being edited, in AutoCAD 2021's words.
Chain
@property
def Chain(self) -> System.Collections.Generic.IReadOnlyList[str]
Gets the handles of the references that lead to the block, the one in a space first; one for a reference of a space, two for a reference nested in it.
FormatNotice
@property
def FormatNotice(self) -> str | None
Gets what AutoCAD 2021 says when the edit opened on an external reference whose drawing is of an older release than the drawing: that the edits saved back are in the release of the file; null otherwise.
IsExternalReference
@property
def IsExternalReference(self) -> bool
Gets whether the reference edited is an external reference, whose file REFCLOSE Save writes.
LocksObjects
@property
def LocksObjects(self) -> bool
Gets whether the objects outside the working set are locked, as the edit opened.
Name
@property
def Name(self) -> str
Gets the name of the block being edited: REFEDITNAME.
ShowsAttributeDefinitions
@property
def ShowsAttributeDefinitions(self) -> bool
Gets whether the attribute definitions of the block are in the working set, as the edit opened.
Skipped
@property
def Skipped(self) -> int
Gets how many objects the reference's placing could not hold, left in the block, when the edit opened.
WorkingSet
@property
def WorkingSet(self) -> System.Collections.Generic.IReadOnlyList[str]
Gets the handles of the objects in the working set that are still in the drawing, in ordinal order: the copies of the block's objects and the objects added since, those erased or taken out left out.
XrefFile
@property
def XrefFile(self) -> str | None
Gets the full path of the file REFCLOSE Save writes, where the reference edited is an external reference; null for a block.
Methods
NotAllowedFor
def NotAllowedFor(self, command: str) -> str
What a command that cannot run while a reference is edited says, in AutoCAD 2021's words: a second REFEDIT names the block checked out, QSAVE and SAVEAS say the drawing cannot be saved, any other (BEDIT) is named.