Skip to main content
Solved

Is it possible to set no fill when writing to DGN?

  • February 15, 2023
  • 3 replies
  • 87 views

stefanh
Contributor
Forum|alt.badge.img+8

With the DGNStyler you can set a fill color, but is has to be a value. In Microstation there is an option to set 'No Fill' (see screenshot below).

 

Is it possbile to set a no fill directly in FME (with the DGNStyler or otherwise)? I tried a few things with 'igds_fill_color' and 'fme_fill_color'; however so far no success.

 

image 

Best answer by daveatsafe

Hi @stefanh​,

We seem to have an issue with the DGN v8 writer when the DGNStyler is used, but no fill color is chosen. This should result in a NoFill polygon, but instead the fill is set to color 241, as you have seen. I have alerted our development team to fix this, but in the meantime you can get NoFill polygons using the following method:

  • Add an AttributeExposer after the DGNStyler to expose the attribute fme_fill_color
  • Add a AttributeRemover to remove fme_fill_color
  • If your source data is also Microstation, you may need to remove the igds_fill_color attribute as well.
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.

3 replies

daveatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • Best Answer
  • February 15, 2023

Hi @stefanh​,

We seem to have an issue with the DGN v8 writer when the DGNStyler is used, but no fill color is chosen. This should result in a NoFill polygon, but instead the fill is set to color 241, as you have seen. I have alerted our development team to fix this, but in the meantime you can get NoFill polygons using the following method:

  • Add an AttributeExposer after the DGNStyler to expose the attribute fme_fill_color
  • Add a AttributeRemover to remove fme_fill_color
  • If your source data is also Microstation, you may need to remove the igds_fill_color attribute as well.

stefanh
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • February 16, 2023

At first I tried to set no value in the field 'RGB Fill Color', but this didn't work out.

Thanks for the workaround, this is working.

@daveatsafe​  When do you think it will be fixed?


daveatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • February 28, 2023

Hi @stefanh​,

We seem to have an issue with the DGN v8 writer when the DGNStyler is used, but no fill color is chosen. This should result in a NoFill polygon, but instead the fill is set to color 241, as you have seen. I have alerted our development team to fix this, but in the meantime you can get NoFill polygons using the following method:

  • Add an AttributeExposer after the DGNStyler to expose the attribute fme_fill_color
  • Add a AttributeRemover to remove fme_fill_color
  • If your source data is also Microstation, you may need to remove the igds_fill_color attribute as well.

Hi @stefanh​,

This issue has been fixed in FME 2023.0 beta versions b23239 and higher, which should be available from safe.com/beta shortly.