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
@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
@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
@property
def IsExternalReference(self) -> bool
Gets whether the reference places an external reference rather than a block.
Name
@property
def Name(self) -> str
Gets the name of the reference's block.
Path
@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
def ToString(self) -> str