Page 1 of 1

Save DWG as WMF or EMF Black Background

Posted: 19 Sep 2008, 06:27
by grazer
Hi,

I want to be able to Save DWG as WMF or EMF and keep the black background. There are a lot of white lines and text in the DWG, so the black background is critical.
However when saved as WMF or EMF, the background is white.
When saving as a BMP, the image displays correctly.

Regards
Andrew

Re: Save DWG as WMF or EMF Black Background

Posted: 19 Sep 2008, 14:54
by support
Hello Andrew,

We recommend to use the following line before saving as WMF/EMF file format:

Code: Select all

this.cadImage.DefaultColor = Color.Black;
and the following after:

Code: Select all

this.cadImage.DefaultColor = CADImport.CADConst.clNone;
DefaultColor sets the color for entities which have white color in AutoCAD™ DXF/DWG - this color is default for all elements and it is white in AutoCAD™ model mode and black in AutoCAD™ layouts. It is black when printing from AutoCAD™.

If the color is clNone entities take black color on the white background and vice versa.

Sergey.