haplokuon / netDxf

.net dxf Reader-Writer
MIT License
986 stars 400 forks source link

Linetype styles not outputting #337

Closed KierenTinning closed 2 years ago

KierenTinning commented 2 years ago

This is the encoding from a DWG to DXF from either AutoCAD or QCad

AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 GAS_MAIN 70 0 3 Gas Main ----GM----GM----GM----GM----GM----GM-- 72 65 73

Where you can see the symbol on the document is a set of dashed lines with text in between.

When saving the file using netDXF the symbol "Gas Main ----GM----GM----GM----GM----GM----GM--" is stripped out - i.e. it is no where to be found

We get this

AcDbLinetypeTableRecord 2 GAS_MAIN 70 0 3

72 65 73 0 40

Manually inserting this symbol code doesn't appear to add it back it (clearly a reference exists elsewhere) - is there a limitation in how netDXF handles the symbol encoding for lines?