Skip to main content
Solved

microstation DGN writer: how to set element fill type to opaque in FME


edvdl
Contributor
Forum|alt.badge.img+1
  • Contributor
microstation DGN writer: how to set element fill type to opaque in FME

Best answer by lenaatsafe

Hi @edvdl,

thank you for your question.

You can control element transparency with igds_transparency format attribute (value 0.0 means fully opaque, value 1.0 means fully transparent). By default, all elements are fully opaque. However, to avoid black fill color, you need to set igds_fill_color which you shouldn't be required to know if you use 'by level'. We will file a PR with request to support 'by level' setting for fill color.

For now, please set igds_fill_color = 4294967295 using AttributeCreator to get 'by level' fill color.

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

7 replies

edvdl
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • January 8, 2016

I am trying to write database polygon features to microstation V8 design files. The symbology is , through the seed file set 'by level'. In FME i can set the line symbology to by level. That part works fine. But the fill has to be the same color as the line. Sofar, i only get a black fill (color 0) or no fill at all in the dgn. In microstation itself it is done by by using the tool 'set element fill' --> 'Fill type' set to 'Opaque' . I cannot find a corresponding igds_* format attribute in FME.

Anybody know how to do this?

regards,

Ed


Forum|alt.badge.img
  • January 8, 2016

@edvdl I just tried something quick. I used the idgs_fill_color and set it to a constant color and it worked. Just make sure the fill is turned on in Microstation.


edvdl
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • January 12, 2016
candimk wrote:

@edvdl I just tried something quick. I used the idgs_fill_color and set it to a constant color and it worked. Just make sure the fill is turned on in Microstation.

Thanks, but no, setting the colour manually for many many many levels is too much work. The elements has to be set by fill type, to opaque, the colours themselves are allready set correctly in the seed file.


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • January 15, 2016

I can not find an igds_ attribute to do this, but as you are setting the color by level in the seed file, can you also set the fill type to Opaque in the seed file and use that setting?


Forum|alt.badge.img
  • Best Answer
  • January 18, 2016

Hi @edvdl,

thank you for your question.

You can control element transparency with igds_transparency format attribute (value 0.0 means fully opaque, value 1.0 means fully transparent). By default, all elements are fully opaque. However, to avoid black fill color, you need to set igds_fill_color which you shouldn't be required to know if you use 'by level'. We will file a PR with request to support 'by level' setting for fill color.

For now, please set igds_fill_color = 4294967295 using AttributeCreator to get 'by level' fill color.


edvdl
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • January 19, 2016

@Lena , worked perfectly! Thank a lot.


  • May 14, 2018
lenaatsafe wrote:

Hi @edvdl,

thank you for your question.

You can control element transparency with igds_transparency format attribute (value 0.0 means fully opaque, value 1.0 means fully transparent). By default, all elements are fully opaque. However, to avoid black fill color, you need to set igds_fill_color which you shouldn't be required to know if you use 'by level'. We will file a PR with request to support 'by level' setting for fill color.

For now, please set igds_fill_color = 4294967295 using AttributeCreator to get 'by level' fill color.

Hi @LenaAtSafe, are there any news regarding the PR to support 'by Level' setting for fill color?

 

king regards, Marvin

 


Reply


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