Table of Contents

CadRefEditLevel

from OpenCAD2D import CadRefEditLevel

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

One reference the Reference Edit dialog lists: its block's name and the chain of references that reach it.

Properties and fields

Chain

.NET

@property
def Chain(self) -> System.Collections.Generic.IReadOnlyList[str]

Gets the handles of the references, the one in a space first and the reference itself last.

FileName

.NET

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

Gets the full path of the file the reference names, found as AutoCAD looks for it, which the dialog's "Reference name" and path columns show for an external reference; null for a block, and for an external reference whose file is not found.

IsExternalReference

.NET

@property
def IsExternalReference(self) -> bool

Gets whether the reference places an external reference rather than a block.

Name

.NET

@property
def Name(self) -> str

Gets the name of the reference's block.

Path

.NET

@property
def Path(self) -> str

Gets the level as the command line writes it: "A" for a reference in a space, "A > B" for B nested in it.

Methods

ToString

.NET

def ToString(self) -> str