Raster image background color different in DWG and DGN Files


  
 Applies To 
  
 Product(s):MicroStation
 Version(s):08.11.07.443
 Environment: N/A
 Area: Raster
 Subarea: 
 Original Author:Frank McAllister, Bentley Technical Support Group
  

 

 

 

 

 

 

 

Problem Description

 

Reason

Explanation of raster image behavior in sheet file.



The raster was attached in a DWG file. Changing the background color of a monochrome raster image is not allowed in a DWG file, so the DWG file remains compatible with AutoCAD. When the DWG is referenced into a DGN sheet model, it will keep its foreground/background colors.

Steps to Resolve

Workflow.



1.) The CBA30x42opensheet-Sheet--.dwg file and xgeoff1-13-12.tif file are located in the XREF folder under the parent folder.

2.) The 2900p2.dgn file is in the parent folder.

3.) The CBA30x42opensheet-Sheet--.dwg file and the 2900p2.dgn sheet files are reference attached into the 2900p2.dgn file.

4.) When you open the CBA30x42opensheet-Sheet--.dwg file in MicroStation the xgeoff1-13-12.tif file shows with a white background.

5.) When you open the 2900p2.dgn file the xgeoff1-13-12.tif image shows with a black background.  You can click invert button and the TIF image background will change to white.

The DWG file is the model file and the TIF image displays correctly in the model file. The TIF image in the sheet file shows a black background instead of a white background like it does in the DWG model file.

If the DGN, DWG and TIF image files are all in the same folder the background will show the same background color. The TIF image background shows white in both the DWG and the DGN file.

When you open the DWG file the TIF image shows a black background. In the DGN file turn on the level that the TIF image shows being attached on.  When you go into the DWG file the TIF image has a white background. When you go into the DGN file the TIF image will show a black background. Click on the TIF image in Raster Manager and clicked invert and the background will change to white. You are now able to go in and out of the DWG and DGN files repeatedly and the settings will not change. The background for the TIF image will stay white in both the DWG and the DGN files.

 

There are two possible workarounds for the user.

(1.) If he has that problem with all his monochrome attachments and they are all TIFF files, he can use the MS_RASTER_TIFFINVERT configuration variable.  When set to 1, this variable will invert the display of all attached monochrome TIFF files, the raster will have a white background in both the DWG and DGN.

(2.) The other workaround would be to use the Invert button in Raster Manager. That would have to be done in all the problematic files.