I would like to copy over these complex linetypes to a new DXF file.
I can grab most of the information using
doc = ezdxf.addons.odafc.readfile(filepath) for linetype in doc.linetypes: print(linetype.dxfattribs()
This returns the dict including name and description, like this :
{'handle': '2A41E', 'owner': '5', 'name': "X832-003-UTEX$0$3''GAS", 'flags': 0, 'description': "----3''G----3''G----"}
But this is missing the pattern.
I do not have an acad.lin file, but the DWG still shows the correct linetype, so it must be available somewhere within the .dwg.
I tried dxf2code, but I've only been able to output code that will create a line that applies the style. I've also tried using the Importer library, but the complex linetypes are turned to simple linetypes, and the text symbols integrated in the line are turned to points.