Skip to main content
Question

Shape to AutoCAD-No Blocks

  • August 9, 2017
  • 4 replies
  • 152 views

Forum|alt.badge.img

Hi all, I have a roads shapefile that is a polygon. When I convert it to a DWG using FME it comes in as a series of blocks. I have a few things that I need to do.

  1. Explode the blocks so that they aren’t polygons any more. I’ve tried: geometry coercer and deaggregator but neither of these explode the blocks.
  2. I need to be able to style the file as follows:

  1. Blue
  2. Weight 0.5mm
  3. A particular dash line type.

I have created a polyline in a dwg with the style I want and used DWGStyler to select it but I can’t seem to get it to work, does the layer in the template and the layer that is to be written have to be the same name?

Thanks

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.

4 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • August 9, 2017

Hi @dunuts,

I would suggest that you try using the GeometryCoercer again to turn your areas into lines, it should work. I suspect your Polygons are potentially multi-polygons (aggregates) in which case you should use a Deaggregator before the GeometryCoercer.

 

You should only be getting blocks in your output DWG if your areas are either Complex (have donuts) or are aggregates (multi-polygons).

The DWGStyler is the right thing to use in this case for it to pick up the line style correctly and give the lines some color. Be sure you have specified the same DWG template in the output DWG writer as well.

Deaggregator => GeometryCoercer (to fme_line) => DWGStyler => Real DWG Writer.


Forum|alt.badge.img
  • Author
  • August 10, 2017

Hi @dunuts,

I would suggest that you try using the GeometryCoercer again to turn your areas into lines, it should work. I suspect your Polygons are potentially multi-polygons (aggregates) in which case you should use a Deaggregator before the GeometryCoercer.

 

You should only be getting blocks in your output DWG if your areas are either Complex (have donuts) or are aggregates (multi-polygons).

The DWGStyler is the right thing to use in this case for it to pick up the line style correctly and give the lines some color. Be sure you have specified the same DWG template in the output DWG writer as well.

Deaggregator => GeometryCoercer (to fme_line) => DWGStyler => Real DWG Writer.

@MattAtSafe

 

Thanks Matt. My areas have doughnuts, and following the workflow above I'm still getting blocks. Anything else I can try?

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • August 10, 2017

@dunuts

DonutHoleExtractor

is what you need for the ..donuts, dunuts.


Forum|alt.badge.img
  • July 4, 2018

Had the same issue with writing to AutoCAD where everything was written as block references. It was due to the AutoCAD writer advanced parameter "Attribute Output" being set to "Inserts". Changed this to "Extended Entity Data" and the result was properly written as the setting in the autocad_entity attribute.