LibreDWG / libredwg

Official mirror of libredwg. With CI hooks and nightly releases. PR's ok
https://savannah.gnu.org/projects/libredwg/
GNU General Public License v3.0
989 stars 234 forks source link

Error while creating an DXF and importing it to AutoCAD #1021

Open Mannshoch opened 2 months ago

Mannshoch commented 2 months ago

Log of the converting is attached: log.log

AutoCAD output:

DXF-ReadError
Error in in APPID Table
DXF-ReadError auf Line 106298.
Invalid or incomplete DXF input -- drawing canceled.

Some lines starting on Line: 106298

AT_JNT_�வ�வ齏跽풴ۂ㺘㻦칀ۂ￾￿
 70
     0
  0
APPID
  5
2AE7
330
9
100
AcDbSymbolTableRecord
100
AcDbRegAppTableRecord
  2
AT_JNT_肘౐肘౐ᠺಜ풴ۥ䇴ሸ칀ۥ￾￿
 70
     0
  0
APPID
  5
2AE8
330
9
100
AcDbSymbolTableRecord
100
AcDbRegAppTableRecord
  2
AUDIT_I_190703115940-0
 70
     0
  0
APPID
  5
2AE9
330
9
100
AcDbSymbolTableRecord
100
AcDbRegAppTableRecord
  2
AT_JNT_⸰ె⸰ెᖳ껀풴۬锼䃭칀۬￾￿
 70
     0
  0
APPID
  5
2AEA
330
9
100
AcDbSymbolTableRecord
100
AcDbRegAppTableRecord
  2
AT_JNT_﵈䂾﵈䂾ᖳ껀풴۬㺠䂪칀۬￾￿
 70
     0
  0
APPID
  5
2AEB
330
9
100
AcDbSymbolTableRecord
100
AcDbRegAppTableRecord
  2
AT_JNT_⾙츰۬ᖳ껀풴۬㵠䂪칀۬￾￿
 70
     0
  0
APPID
  5
2AEC
330
9
100
AcDbSymbolTableRecord
100
AcDbRegAppTableRecord
  2

I'm not a Developer, I'm a CAD User which uses FreeSoftware at home. I'm not allowed to provide the DWG or DXF of the file. But I'm willing to follow advises If you need me doing things to find the errors.

Environment:

rurban commented 1 month ago

Without the XX1704-LAY-0900-P11628.dwg we cannot help.

The Invalid BLOCK_HEADER.preview_size 538976288 error was just fixed recently. It corrupted the whole object

Mannshoch commented 1 month ago

Sorry, I'm not allowed to provide the DWG or DXF of the file. But I'm willing to follow advises If you need me doing things to find the errors. I have FreeCAD and AutoCAD 2019 (with addon for the Proxyobject) and AutoCAD 2025 at hand. My goal is a 3D view in FreeCAD.

michal-josef-spacek commented 1 month ago

@Mannshoch The best way is create some simple DWG file which you could send to ticket.

e.g. This is APPID section, so use this application and save. I think that could be something with unicode string in DXF 2 section.

Example to test: 1) New DWG file 2) (regapp "ADESK_4153322344") # Fill name which you have in your situation 3) dxfout

Mannshoch commented 1 month ago

dev2.zip

michal-josef-spacek commented 1 month ago

@Mannshoch Could you open these files in AutoCAD and save as DXF and send to us?

michal-josef-spacek commented 1 month ago

Files (AC1032):

michal-josef-spacek commented 1 month ago

Issue with sections is described at https://github.com/LibreDWG/libredwg/issues/948

Mannshoch commented 1 month ago

Seems the worst possible case I have.

michal-josef-spacek commented 1 month ago

@Mannshoch The best way is to define, what is the biggest problem, define the problem, have an example, and fix it. Repeat for all issues. It's doable.