Skip to main content

I am currentley using FME 2015 and i want to use dgn styler to , amongst other things, set the color of polygon object to a microstation V8 dgn file.

 

For some Features i need to set the rgb value, for other features the indexed color from the color table. But in the resulting dgn file i do not see the desired result at all. For rgb values i use , for example 124, 211,64 values, for the indexed color a numerial value from 0-255 range.

 

What am i doing wrong here ?

Hi @edvdl,

In such a case of mixed settings I would advise you to use divide the data into 2 dgnstylers one for a RGB and the second for the color index.

The RGB values are the fme annotation for RGB, which you can calculate from the RGB values as R/256, G/256 and B/256

Hope this helps


Hi @edvdl,

In such a case of mixed settings I would advise you to use divide the data into 2 dgnstylers one for a RGB and the second for the color index.

The RGB values are the fme annotation for RGB, which you can calculate from the RGB values as R/256, G/256 and B/256

Hope this helps

Indeed i am using 2 dgnstylers, one for RGB and one for de color indexed. But what do you mean by 'fme annotation for RGB' Now i am using values like '124,211,64' (R,G,B)

 

 


Indeed i am using 2 dgnstylers, one for RGB and one for de color indexed. But what do you mean by 'fme annotation for RGB' Now i am using values like '124,211,64' (R,G,B)

 

 

FME uses 0.48,0.82,0.25 for 124,211,64

 

 


Indeed i am using 2 dgnstylers, one for RGB and one for de color indexed. But what do you mean by 'fme annotation for RGB' Now i am using values like '124,211,64' (R,G,B)

 

 

Here is a posted solution:

 

https://knowledge.safe.com/questions/19482/convert-between-different-color-values.html

 

 


@Itay, Thank you very much, your suggested solution works perfectly!


@Itay, Thank you very much, your suggested solution works perfectly!

Is it actually possible to set RGB colors directly or it still sets it as closest index color?

 

 


Is it actually possible to set RGB colors directly or it still sets it as closest index color?

 

 

Both are possible but not via the same styler.

 

 


Both are possible but not via the same styler.

 

 

I mean to set RGB values as RGB color not as index color? Because DGN v8 can have either index color, RGB color or colorbook color. I read that there are hidden attributes which is possible to expose that deal directly with the rgb values. Is it so?

 

 

But I read also in changelog that in FME 2015:

 



MicroStation
(V8)

 


  • Added new format attributes to store cell element color
    as RGB as well as a DGN index number

 

 


Reply