Skip to main content

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.

What have you tried so far?


i have used dwg styler and png rasteriser

but both cannot give me required output


What have you tried so far?

i have used dwg styler and png rasteriser

but both cannot give me required output


@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.

 


@redgeographics ,help

 


@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


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


yup i have tried that too

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


Reply