Skip to main content
Question

DGN Styler - RGB not working?

  • August 22, 2017
  • 7 replies
  • 67 views

Hi,

I'm using the DGN styler to plot my data using RGB colours that I've pulled out of an mxd, I've set this to the FME colours and also tried RGB colours (multiplied the parts of the fme colour x 255) but neither seem to work. The data inspector does show the colours correctly.

As a workaround I assigned my different coloured polygons to different CAD levels then set them the elements colour to 'by level' and importing a csv of by level colours. The problem is I now need to set all my elements on a single level so can only have a single colour.

I've had success by assigning a colour index in the past but need to assign RGB in this instance.

Any help would be much appreciated.

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.

7 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

Just for clarification: if you write to DGN and then view that in the Data Inspector, are the colors ok then? There are cases where redirecting to the Data Inspector may yield different results than inspecting the output file and this is such a case, that's because there may be a seed file that's affecting this.


Just for clarification: if you write to DGN and then view that in the Data Inspector, are the colors ok then? There are cases where redirecting to the Data Inspector may yield different results than inspecting the output file and this is such a case, that's because there may be a seed file that's affecting this.

Hi, just tried writing to DGN and then viewing the writer in inspector (after ran) the colours look incorrect. The inspector that looks correct is fed from the dgn styler. I'll have a play around with the seed file to see if that will fix it, are any of the fme seed files better for RGB export?

 

 


Forum|alt.badge.img
  • August 22, 2017

Hi @david_farmer

at the moment, DGN Writer can only use colors from seed-file color table. If you assign an RGB color to a feature, the Writer will find the closest match in the seed-file color table and use it for the feature.

True color (RGB color rather then color by index/from color table) support is a relatively new MicroStation functionality. We have a PR filed in our system with request to add DGN true color support for read and write. This PR is currently in progress which means that we might see this new functionality in FME 2018 beta quite soon.


Hi @david_farmer

at the moment, DGN Writer can only use colors from seed-file color table. If you assign an RGB color to a feature, the Writer will find the closest match in the seed-file color table and use it for the feature.

True color (RGB color rather then color by index/from color table) support is a relatively new MicroStation functionality. We have a PR filed in our system with request to add DGN true color support for read and write. This PR is currently in progress which means that we might see this new functionality in FME 2018 beta quite soon.

@LenaAtSafe Ahh righto, thanks for letting me know. Do you know if there is another work-around other than assigning colours to levels as I posted above? Thanks

 


redgeographics
Celebrity
Forum|alt.badge.img+62
@LenaAtSafe Ahh righto, thanks for letting me know. Do you know if there is another work-around other than assigning colours to levels as I posted above? Thanks

 

If you can create a custom seed file with those colours it shoud work, but that's of course not a very dynamic solution, if the MXD's styles are likely to change you're still out of luck.

 

 


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • August 17, 2022

Bumping up this old thread...

Was there any movement on the PR to support true color for reading/writing DGNs? @lenaatsafe​ 


JennaKAtSafe
Safer
Forum|alt.badge.img+8

Bumping up this old thread...

Was there any movement on the PR to support true color for reading/writing DGNs? @lenaatsafe​ 

Hi @dustin​ , Jovita's response in this thread should answer your question. The issue is currently being tracked and Jovita's suggestion should serve as a workaround until then. Thank you for bringing this up!