Skip to main content
Question

Keeping all styles (lintypes, colors, etc.) from a dxf when using Autodesk AutoCAD DWG/DXF reader

  • August 28, 2025
  • 3 replies
  • 56 views

jbriant
Contributor

Hi,

 

I have a dxf file with objects in it, their representation is fine, I’m happy with it.

However I need to filter these object using an polygon extent. So I read the dxf file using and Autodesk AutoCAD DWG/DXF reader and then lose the linetypes.

The information seems to be read because an inspector shows me that the attribute autocad_linetype is correctly read (e.g. symbolLayer1), so it feels like the problem is that the style is not defined and thus FME uses CONTINUOUS in the end. Colors seem fine though.

 

Is there any way to keep these types without recreating everything in FME?

 

FME versions:

  • Form 2023.1.1.1

 

Best Regards,

 

Julien

3 replies

tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • August 28, 2025

Have you defined the template file in the Writer?


jbriant
Contributor
  • Author
  • August 28, 2025

It does work with a template but the linetype names might change from one source file to the other, and I don’t find a way to use the input dxf as template since it has to be a preexisting file. But maybe I should go back one step and fix those names.


tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • August 29, 2025

You can simply use the source file as a template.