Export layers to DXF

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

Moderators: admin, support, SDS

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

Export layers to DXF

Post by chantal » 09 Jun 2017, 16:13

Hello,

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
begin
layer := TsgExpDXFLayer.Create (EMFs [i-1].name);
vDXF.CurrentLayer := layer ;
vDXF.LoadFromFile (EMFs [i-1].file);
end;

...

vDXF.SaveToFile(file);


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

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

Re: Export layers to DXF

Post by support » 13 Jun 2017, 21:45

Hello,

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.


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

Post Reply