Code: Select all
CADEntityCollection xrefs = vCADFile.Converter.XRefs;
foreach (CADXRef rf in xrefs)
{
System.Diagnostics.Debug.WriteLine(" ***" + rf.Path);
}
Thanks in advance.
Moderators: SDS, support, admin
Code: Select all
CADEntityCollection xrefs = vCADFile.Converter.XRefs;
foreach (CADXRef rf in xrefs)
{
System.Diagnostics.Debug.WriteLine(" ***" + rf.Path);
}
Hello,jcs wrote: ↑28 Sep 2023, 17:42In c#, using "CADImport .NET" we can get all xrefs from a dwg file.
But, how I get all other external files included in a DWG? All images, pdfs, etc?Code: Select all
CADEntityCollection xrefs = vCADFile.Converter.XRefs; foreach (CADXRef rf in xrefs) { System.Diagnostics.Debug.WriteLine(" ***" + rf.Path); }
Thanks in advance.
Code: Select all
foreach (CADImageDef imdef in vCADFile.Converter.ImageDefs)
{
Debug.WriteLine(" *** IMAGE NAME: " + imdef.FileName);
}