How to display Xref files?

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
fchateau
Posts: 7
Joined: 28 Dec 2005, 00:22
Location: USA
Contact:

How to display Xref files?

Post by fchateau » 29 Dec 2005, 03:22

Can this be done?

Load DXF file which contains XRef to two other DFX attached files and display visible entities in all files.


Regards,

Fred Chateau

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 29 Dec 2005, 19:07

Dear Mr. Fred Chateau,

AutoCAD does not allow to make references to DXF. AutoCAD allows to make references to DWG only.
Our libraries support references in DXF to DXF and in DWG to DWG. However at present DXFImport.NET does not support DWG file format. We plan to release it up to the end of the February, 2006.

Sergey.

please post questions to the forum or write to support@cadsofttools.com

fchateau
Posts: 7
Joined: 28 Dec 2005, 00:22
Location: USA
Contact:

Post by fchateau » 30 Dec 2005, 02:10

> Our libraries support references in DXF to DXF and in DWG to DWG.

Are you saying that AutoCAD does not provide the reference data when exporting a DWG file to DXF or that they just don't support it in their application? In other words, if I export a parent DWG file and two attached Xref DWG files from AutoCAD, can I load the three DXF files into your demo viewer and display the complete drawing, or will reference data be missing from the files?

This might be the same question or maybe it's an overly simplistic view of the situation, but if the parent and child DXF files all use World coordinates, wouldn't they match up even if no XRef data is present?

If so, do you have an example in C# of how to load multiple DXF files with CADImport.NET?

Regards,

Fred Chateau

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 30 Dec 2005, 12:25

Hello,

It means that by XREF (>Xref manager>Attach) command it is possible to insert only DWG file into the current file (even if current file is DXF).
Since a DWG file format is not currently supported in DXFImport .NET, such Xrefs(created in AutoCad) will not be displayed.
It is possible in a DXF file to replace manually (by any text editor) references to DWG file by references to DXF file (a corresponding DXF file must exist).

Or you want us to add an insert interface of DXF file into the current drawing with predefined position, scaling ratio and rotation angle? We can do this because something similar is realized in CADImportVCL (download link: http://cadsofttools.com/download/CADImportVCL.zip, see in demo programm "TextChange+Color2LineWeight" button "Add scaled files"). See this demo and if this is what you want we will write this demo in C# (it will take some time).

Sergey.

please post questions to the forum or write to support@cadsofttools.com

Post Reply