Skip to main content

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

Have you defined the template file in the Writer?


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.


You can simply use the source file as a template.