Table of Contents

CadExternalReference

from OpenCAD2D import CadExternalReference

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

One row of AutoCAD's External References palette: an external reference (a DXF attached or overlaid) or an image definition of the drawing, with where it stands and the file found for it.

Properties and fields

Date

.NET

@property
def Date(self) -> System.DateTime | None

Gets the time the file found was last written, in local time; null where none was found.

Depth

.NET

@property
def Depth(self) -> int

Gets how deep it is nested: 0 for one the drawing places, 1 for one placed by such a reference's drawing, and on.

FoundAt

.NET

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

Gets the full path of the file found; null where none was.

IsImage

.NET

@property
def IsImage(self) -> bool

Gets whether it is an image rather than an external reference.

IsNested

.NET

@property
def IsNested(self) -> bool

Gets whether it is a nested reference: one the drawing of another reference places.

IsOverlay

.NET

@property
def IsOverlay(self) -> bool

Gets whether an external reference is overlaid rather than attached.

IsPdf

.NET

@property
def IsPdf(self) -> bool

Gets whether it is the definition of a PDF underlay (one page of a PDF file) rather than an external reference or an image.

Name

.NET

@property
def Name(self) -> str

Gets the name: the block of an external reference, the entry of an image definition.

ParentName

.NET

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

Gets the name of the external reference whose drawing places it, for a nested reference; null for one the drawing places itself, or an image.

PathType

.NET

@property
def PathType(self) -> CadPathType

Gets how its path is written: a full path, one from the drawing's folder, or the file's name alone.

SavedPath

.NET

@property
def SavedPath(self) -> str

Gets the path the drawing names the file by, as it is written.

Size

.NET

@property
def Size(self) -> int

Gets the size of the file found in bytes; -1 where none was found.

Status

.NET

@property
def Status(self) -> CadReferenceStatus

Gets where it stands.

StatusText

.NET

@property
def StatusText(self) -> str

Gets the status in the words of AutoCAD 2021's help of the palette: Loaded, Unloaded, Not Found, Unresolved, Unreferenced, Needs Reloading, Orphaned.

TypeName

.NET

@property
def TypeName(self) -> str

Gets the type the palette shows: Attach or Overlay for an external reference, the kind of file for an image (PNG, JPG, BMP).

Methods

ToString

.NET

def ToString(self) -> str