Skip to main content
Question

Dwg to Png conversion issue


Forum|alt.badge.img

I wish to convert dwg file to png using fme by running workbench using java.

But i am not able to set color ,hatch style and line width dynamically based on my dwg file.

I'm attaching the dwg file please help me.

8 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

What have you tried so far?


Forum|alt.badge.img

i have used dwg styler and png rasteriser

but both cannot give me required output


Forum|alt.badge.img
redgeographics wrote:

What have you tried so far?

i have used dwg styler and png rasteriser

but both cannot give me required output


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • June 3, 2019

@sibinvns007

 

Hi,

You need to acces the hatch information and extract which it is.

The hatch definition is in a text file, I think in autocad support folder.

You need to learn how the procedure is that autocad uses and then emulate it in fme (mind ou, you might be creating a lot of objects for the hatch styling).

For the solids you would just read the color parameter, of course if you have named colors you will have join the acad definition file of these colors.

(in fact u can emulate those hatch styles without reading the definition file, as they are simple hatches, only one of them seems more complexish)

 

You can also opt to rasterize the hatch styles and use rastertransformers and affiners to map the hatches to the relevant objects.

 


Forum|alt.badge.img

@redgeographics ,help

 


redgeographics
Celebrity
Forum|alt.badge.img+49
sibinvns007 wrote:

@redgeographics ,help

 

How about the MapnikRasterizer, have you tried that? Also keep in mind it may not always be possible to get the end result to look exactly the same as in AutoCAD


Forum|alt.badge.img
redgeographics wrote:

How about the MapnikRasterizer, have you tried that? Also keep in mind it may not always be possible to get the end result to look exactly the same as in AutoCAD

yup i have tried that too


redgeographics
Celebrity
Forum|alt.badge.img+49
sibinvns007 wrote:

yup i have tried that too

Can you post a screenshot of what it looks like in AutoCAD?


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