Search found 4 matches

by pierpaolo.degrandis
10 Nov 2022, 13:48
Forum: CAD VCL
Topic: How to convert two metafile to one dxf with two layers
Replies: 7
Views: 3791

Re: How to convert two metafile to one dxf with two layers

Hi Suraya thank you for your support. I finally solved: I've add a method to class TsgDXFExportDirect to export a list of metafile in more layers: procedure TsgDXFExportDirect.LoadLayersFromMetafiles(MetafileList: TStringList); var vMetafileLoader: TsgConvertMetafileToCad; vBox: TFRect; LastMetafile...
by pierpaolo.degrandis
08 Nov 2022, 14:08
Forum: CAD VCL
Topic: How to convert two metafile to one dxf with two layers
Replies: 7
Views: 3791

Re: How to convert two metafile to one dxf with two layers

Hi Suraya, starting from DXFExporter demo example, I've replaced TfmDXFExporter.btnEmf2dwgClick method with your one. I have some compilation errors: Cannot find: TsgDXFExportAccess(vExport).SetCADImage(vCADImage); Cannot find: ConvertToCad(nil, vLayers, vCADImage, vBox, nil, '', nil, nil, vImageInI...
by pierpaolo.degrandis
28 Jul 2022, 13:33
Forum: CAD VCL
Topic: How to convert two metafile to one dxf with two layers
Replies: 7
Views: 3791

Re: How to convert two metafile to one dxf with two layers

Hi Catherine, thanks for your reply. I create this procedure to create a DXF file from two metafiles on two different layers: class procedure TImageConvertion.AddMetafileToCADImage(ACADFile: TsgCADImage; AFileName: string; AWidth: Integer; ALayerName: string); var vImageDef: TsgDXFImageDef; DXFImage...
by pierpaolo.degrandis
24 Jun 2022, 17:44
Forum: CAD VCL
Topic: How to convert two metafile to one dxf with two layers
Replies: 7
Views: 3791

How to convert two metafile to one dxf with two layers

Hi,
I need to create a DXF file with two layers, then load two metafile and draw it one for layer.
How can i do?