Skip to main content
Question

Polygon fills and point symbols in AtuCAD DWG

  • Oct 28, 2026 5:57 PM UTC
  • 2 replies
  • 53 views

warren
Contributor
Forum|alt.badge.img+2

Can anyone give me some advice on getting GIS-styling symbols and polygon fills using the AutoCAD DWG writer?

I’m not an AutoCAD expert but have this week been getting to grips with concepts such as blocks. With help from a colleague, we’ve managed to create a template with blocks for a range of point symbols and got my Form script to output points to a layer referencing the appropriate block name so that an appropriate symbol appears. Note: I have too many symbol types to put each on a separate layer. Is this the use of blocks to implement cartographic symbols a sound approach?

The next thing I’d like to do is have some symbol fills for polygon features. e.g. trees representing woodland. What approach would be best to implement what would be a simple custom pattern fill in GIS software? I’m already aware than Form outputs simple polygons as normal, but complex ones (e.g. with holes) via sequentially named blocks. What about using custom hatches?

Finally, I’d like my AutoCAD drawing to have a metadata page which contains information about the data output from Form. Again, using a template, I’ve seen metadata implemented using blocks with named attributes. Does Form have the ability to alter block attributes to magically set my metadata page?

Regards,
Warren

2 replies

warren
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • Oct 28, 2026 6:03 PM UTC

“AutoCAD” DWG even! 😳


veronikaatsafe
Safer
Forum|alt.badge.img+13

Hi ​@warren,

I believe your workflow for using blocks for point symbols is the intended way, as DWGStyler turns point features into AutoCAD insert entities (autocad_block_name, autocad_rotation, etc.) according to the DWGStyler documentation.

For the polygon pattern fills question, you’re able to use hatch patterns for regular polygons and polygons with holes, for both Hatch and MPolygon entity types.

My workflow for setting a custom hatch pattern was Reader → DWGStyler → AttributeCreator → AutoCAD Writer.
 

 

It seems like you have to manually set an attribute called autocad_hatch_pattern_type (or autocad_mpolygon_pattern_type, depending on your entity type) to 2, so that FME recognizes it as a custom pattern rather than defaulting to “pre-defined”, otherwise it falls back to a solid fill.
I also used the same template DWG (with custom hatching imported) in both the DWGStyler and the DWG Writer.

I haven’t gotten to the metadata question yet, but I will follow up once I take a look at it.

Hope this helped! I’m happy to share my workspace with you if needed.