Autocad won't read dxf file

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
User avatar
J-J
Moderator
Posts: 502
Joined: Tue Mar 24, 2009 9:48 pm

Autocad won't read dxf file

Post by J-J » Mon Dec 15, 2014 12:31 pm

We sent a few files to a company to perform laser cutting of parts. They use Autocad to read our drawing but apparently they stumble on an error upon reading the dxf. I also tried sending an older version of dxf (R21) as I had encountered once the situation where the Autocad version was not up to the latest.
I looked at the line where the reading stops, it says "NAN", anyway I attach one of the files for review, below is the error message the company sent us:

Back-R21.dxf
DXF read error on line 5420.
Invalid or incomplete DXF input

Thanks for any feed back
Attachments
back-R21.dxf
file in dxf R21
(198.03 KiB) Downloaded 463 times
JJ Win7 pro-64

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Autocad won't read dxf file

Post by andrew » Mon Dec 15, 2014 12:50 pm

There were indeed two invalid dimension entities in this file.
I've removed them and attached the fixed file.

This is the first time I've seen an error like this. Please let me know if it occurs again. Thanks.
Attachments
back-R21_fix.dxf
(202.88 KiB) Downloaded 458 times

User avatar
J-J
Moderator
Posts: 502
Joined: Tue Mar 24, 2009 9:48 pm

Re: Autocad won't read dxf file

Post by J-J » Mon Dec 15, 2014 12:58 pm

Thanks Andrew, but we have several other files, what should I do to fix them ?
JJ Win7 pro-64

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Autocad won't read dxf file

Post by andrew » Mon Dec 15, 2014 1:17 pm

If the problem is the same, you can fix them as follows:

- Load the file with QCAD
- Show selection filter: View > Selection Filter
- Entity Type: Dimension
- Click left button to replace the current selection
Screen Shot 2014-12-15 at 13.17.35.png
Screen Shot 2014-12-15 at 13.17.35.png (23.04 KiB) Viewed 9749 times
- Check that no real, valid dimensions are selected (deselect them if necessary)
- Edit > Delete

User avatar
J-J
Moderator
Posts: 502
Joined: Tue Mar 24, 2009 9:48 pm

Re: Autocad won't read dxf file

Post by J-J » Mon Dec 15, 2014 4:00 pm

OK, I tried first with the file I sent you, and yes I found an entity that I deleted.
On this other drawing, I did the same but found nothing, and upon reading the dxf, I still have the same issue on line 5252... e_confused

here's the file, thanks
Attachments
frontSQUARER21.dxf
(193.61 KiB) Downloaded 466 times
JJ Win7 pro-64

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Autocad won't read dxf file

Post by andrew » Mon Dec 15, 2014 4:15 pm

J-J wrote:On this other drawing, I did the same but found nothing
You likely found two entities but didn't see them getting selected because they're off the canvas:
Screen Shot 2014-12-15 at 16.15.04.png
Screen Shot 2014-12-15 at 16.15.04.png (14.56 KiB) Viewed 9745 times
Check also the status bar after running the selection filter:
Screen Shot 2014-12-15 at 16.15.07.png
Screen Shot 2014-12-15 at 16.15.07.png (9.34 KiB) Viewed 9745 times

olly
Full Member
Posts: 71
Joined: Wed Jan 25, 2012 1:28 pm

Re: Autocad won't read dxf file

Post by olly » Mon Dec 15, 2014 5:46 pm

install "select widget" then you can:
a) select all
b) chose it from the menu
c) delete

User avatar
J-J
Moderator
Posts: 502
Joined: Tue Mar 24, 2009 9:48 pm

Re: Autocad won't read dxf file

Post by J-J » Mon Dec 15, 2014 7:30 pm

I was not expecting entities out of view as usually when opening a file, auto zoom supposedly shows everything on the screen...
One always learns something new every day! :wink:

Thanks again
JJ Win7 pro-64

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Autocad won't read dxf file

Post by andrew » Mon Dec 15, 2014 7:38 pm

J-J wrote:I was not expecting entities out of view as usually when opening a file, auto zoom supposedly shows everything on the screen...
The problem for auto zoom is that these invalid entities have no size and are ignored for auto zoom (like empty texts). This has actually been changed recently, no way you could have known that :)

Post Reply

Return to “QCAD Troubleshooting and Problems”