Skip to main content
Question

Dwg to Png conversion issue

  • May 16, 2019
  • 8 replies
  • 71 views

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.

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.

8 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

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

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
  • Author
  • June 24, 2019

@redgeographics ,help

 


redgeographics
Celebrity
Forum|alt.badge.img+62

@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
  • Author
  • June 26, 2019

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+62

yup i have tried that too

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