Page 1 of 1

Export layers to DXF

Posted: 09 Jun 2017, 16:13
by chantal
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.

Re: Export layers to DXF

Posted: 13 Jun 2017, 21:45
by support
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