Skip to main content


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

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.


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?

@dunuts

DonutHoleExtractor

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


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.