Export layers to DXF

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

Moderators: support, SDS, admin

Post Reply
Posts: 1
Joined: 09 Jun 2017, 15:44

Export layers to DXF

Post by chantal » 09 Jun 2017, 16:13


we are migrating an old application with an old version of CADVCL to CADVCL v11.
we used to export the DXF from an EMF format via the following lines :

vDXF := TsgDXFExport.Create;

for i := 1 to Emfs.count do
layer := TsgExpDXFLayer.Create (EMFs [i-1].name);
vDXF.CurrentLayer := layer ;
vDXF.LoadFromFile (EMFs [i-1].file);



But we haven't found the TsgExpDXFLayer in the v11 version.
What do we have to do ? can you help us ?
Thank you.

Posts: 2930
Joined: 30 Mar 2005, 11:36

Re: Export layers to DXF

Post by support » 13 Jun 2017, 21:45


To convert a metafile to the DXF format in CAD VCL 11, you need to use TsgDXFExportDirect class methods. The TsgDXFExportDirect class is declared in DXFExportDirect unit.

As for creating the DXF layers during conversion, unfortunately, it is not possible.

Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply