Skip to main content
Solved

Microstation DGNStyler

  • September 22, 2016
  • 8 replies
  • 52 views

edvdl
Contributor
Forum|alt.badge.img+1

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

8 replies

itay
Supporter
Forum|alt.badge.img+18
  • 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

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+18
  • Supporter
  • September 23, 2016
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+18
  • Supporter
  • September 23, 2016
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

@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+18
  • Supporter
  • February 2, 2017
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
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