CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 6856

CAD tip CAD tip # 12347:

Question CAD 
 %  platform  category 
Q - question

Invalid or incomplete DXF input -- drawing discarded.

A - answer When trying to open a DXF file in AutoCAD, an error is reported:

Error in drawing header on line 1.
Invalid or incomplete DXF input -- drawing discarded.
Press ENTER to continue:

This error indicates that the opened DXF file is corrupted (damaged). Common causes are:

  • The DXF file was created by an external application but it doesn't have a proper format matching the DXF specification.
  • The file was created as an export from a corrupted (e.g. non-Autodesk) DWG file.
  • The file was damaged during transmission or during copying.
  • It is not a DXF file, but e.g. a renamed .DWG file.
  • The DXF file was edited in Word.
  • The DXF file is not stored in the ASCII or UTF-8 (w/o BOM) format - it is stored e.g. in the text format encoded as UTF-16 or as UTF-8 with the leading BOM characters.

Try to create the DXF file again or repair it using a text editor, e.g. Notepad, Notepad++.

A typical DXF file (after you open it in Notepad) begins e.g. with this:


The error may be found also on a higher line number - in this case, it is typically a syntax error in the DXF exchange format on the given row. Or the file comes from a higher AutoCAD version than you use to open it. Correct the problem in a text editoru or contact your AutoCAD vendor.

100% *  CAD 
21.8.2019    15738×   FAQ  
Prices - CAD eShop:
applies to: AutoCAD · AutoCAD LT · AutoCAD Mechanical ·

See also:
Tip 13938:ModDXF - utility for bulk modification/display of internal DXF properties in DWG entities.
Tip 13800:Visually compare 3D geometry in CAD and BIM files.
Tip 13541:Using Twinmotion from Revit to visualize other types of 3D scenes.
Tip 13274:How to switch the DWG TrueView viewer to the classic user interface, without ribbon?
Tip 13228:DWG or DXF file exported to/from Fusion 360 has incorrect size (scale, 10x larger/smaller).

Back   All CAD Tips

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info

Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.