Skip to main content
Solved

Microstation DGNStyler

  • September 22, 2016
  • 8 replies
  • 18 views

edvdl
Contributor
Forum|alt.badge.img+1
  • Contributor

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 ?

Best answer by itay

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

View original
Did this help you find an answer to your question?

8 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • Best Answer
  • September 22, 2016

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


edvdl
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • September 23, 2016
itay wrote:

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)

 

 


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • September 23, 2016
edvdl wrote:
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

 

 


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • September 23, 2016
edvdl wrote:
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

 

 


edvdl
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • September 23, 2016

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


  • February 2, 2017
edvdl wrote:

@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?

 

 


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • February 2, 2017
otoluk wrote:
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.

 

 


  • February 3, 2017
itay wrote:
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

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings