Export layers to DXF
Moderators: SDS, support, admin
Export layers to DXF
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.
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
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
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
Chat support on Skype: cadsofttools.support