CadRenameRequest
from OpenCAD2D import CadRenameRequest
class CadRenameRequest(System.Object) ยท CadRenameRequest in the .NET reference
What RENAME gives its dialog: the kinds of named objects of AutoCAD 2021's Rename dialog, the names of each that can be renamed (layer 0, the Standard styles, ByLayer, ByBlock and Continuous left out, as AutoCAD lists them), and the renames the dialog asks for, made in order once it closes with OK, as one step of undo.
Properties and fields
Document
@property
def Document(self) -> CadDocument
Gets the document whose objects are renamed.
IsAccepted
@property
def IsAccepted(self) -> bool
@IsAccepted.setter
def IsAccepted(self, value: bool) -> None
Gets or sets whether the dialog closed with OK; the renames are made only then.
Kinds
@property
def Kinds(self) -> System.Collections.Generic.IReadOnlyList[str]
Gets the kinds of named objects, as the Named Objects list writes them: Blocks, Dimension styles, Layers, Linetypes, Multileader styles, Table styles, Text styles, UCSs, Viewports and Views.
Renames
@property
def Renames(self) -> System.Collections.Generic.IList[CadRename]
Gets the renames asked for, made in this order when the dialog closes with OK.
Methods
NamesOf
def NamesOf(self, kind: str) -> System.Collections.Generic.IReadOnlyList[str]
Gets the names of a kind that can be renamed, sorted by their letters, either case the same.