Table of Contents

CadRefEditRequest

from OpenCAD2D import CadRefEditRequest

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

AutoCAD 2021's Reference Edit dialog of REFEDIT, as data the command and the window share: the references the point picked reaches (CadRefEditRequest.Levels, each a block or an external reference with the path of its file), the one chosen, whether the objects to edit are all taken or asked for by point, and the three settings of its Settings tab: display of attribute definitions, unique layer and symbol names, and the lock on the objects outside the working set. The window fills it and sets CadRefEditRequest.IsAccepted on OK; the command then writes the settings to the document and opens the edit. With no window to show it, REFEDIT asks the same things on the command line, as -REFEDIT does.

Constructors

__init__

.NET

def __init__(
    self,
    document: CadDocument,
    levels: System.Collections.Generic.IReadOnlyList[CadRefEditLevel],
) -> None

Makes the request of a document: the settings are those the document holds, the first reference chosen, every object taken.

Properties and fields

DisplayAttributeDefinitions

.NET

@property
def DisplayAttributeDefinitions(self) -> bool
@DisplayAttributeDefinitions.setter
def DisplayAttributeDefinitions(self, value: bool) -> None

Gets or sets whether the attribute definitions of the block are in the working set (Display attribute definitions for editing).

Document

.NET

@property
def Document(self) -> CadDocument

Gets the document.

IsAccepted

.NET

@property
def IsAccepted(self) -> bool
@IsAccepted.setter
def IsAccepted(self, value: bool) -> None

Gets or sets whether OK was pressed; false for Cancel, Esc and the close button.

Levels

.NET

@property
def Levels(self) -> System.Collections.Generic.IReadOnlyList[CadRefEditLevel]

Gets the references the dialog lists, the outermost first.

LockObjects

.NET

@property
def LockObjects(self) -> bool
@LockObjects.setter
def LockObjects(self, value: bool) -> None

Gets or sets whether the objects outside the working set are locked (Lock objects not in working set).

PromptForObjects

.NET

@property
def PromptForObjects(self) -> bool
@PromptForObjects.setter
def PromptForObjects(self, value: bool) -> None

Gets or sets whether the objects to edit are asked for by point (Prompt to select nested objects); false takes every object (Automatically select all nested objects).

Selected

.NET

@property
def Selected(self) -> CadRefEditLevel

Gets the reference chosen.

SelectedIndex

.NET

@property
def SelectedIndex(self) -> int
@SelectedIndex.setter
def SelectedIndex(self, value: int) -> None

Gets or sets which of CadRefEditRequest.Levels is chosen; the first, the reference picked, until set.

UniqueNames

.NET

@property
def UniqueNames(self) -> bool
@UniqueNames.setter
def UniqueNames(self, value: bool) -> None

Gets or sets whether the layers of an external reference's objects take names of their own while they are edited (Enable unique layer and symbol names).

Methods

Apply

.NET

def Apply(self) -> None

Writes the three settings to the document, as OK does; the edit then opens with them.

HasAttributeDefinitionsAt

.NET

def HasAttributeDefinitionsAt(self, index: int) -> bool

Gets whether a reference of the list has attribute definitions, which the setting to display them is for.