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
@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
@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
@property
def FoundAt(self) -> str | None
Gets the full path of the file found; null where none was.
IsImage
@property
def IsImage(self) -> bool
Gets whether it is an image rather than an external reference.
IsNested
@property
def IsNested(self) -> bool
Gets whether it is a nested reference: one the drawing of another reference places.
IsOverlay
@property
def IsOverlay(self) -> bool
Gets whether an external reference is overlaid rather than attached.
IsPdf
@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
@property
def Name(self) -> str
Gets the name: the block of an external reference, the entry of an image definition.
ParentName
@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
@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
@property
def SavedPath(self) -> str
Gets the path the drawing names the file by, as it is written.
Size
@property
def Size(self) -> int
Gets the size of the file found in bytes; -1 where none was found.
Status
@property
def Status(self) -> CadReferenceStatus
Gets where it stands.
StatusText
@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
@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
def ToString(self) -> str