Why can't AutoCAD open this dxf file?

Why can't AutoCAD open this dxf file?

nickrazes
Participant Participant
1,235 Views
6 Replies
Message 1 of 7

Why can't AutoCAD open this dxf file?

nickrazes
Participant
Participant

I'm trying to write a program that creates a simple dxf file but I can't figure out what to fix with it so that autocad can open it. When I try to open it autocad says to push enter to continue and, when I do, it just goes back to the welcome screen. What do you think?

0 Likes
Accepted solutions (1)
1,236 Views
6 Replies
Replies (6)
Message 2 of 7

paullimapa
Mentor
Mentor

there's an error message that appears before:

paullimapa_0-1705269623440.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 7

cadffm
Consultant
Consultant
Accepted solution

Hi,

 

>>"I'm trying to write a program that creates a simple dxf file"

One item more simple - you can delete the QCAD appid item

 

>>"but I can't figure out what to fix with it so that autocad can open it."

You forgot the BYBLOCK and BYLAYER item in LTYPE table

 

>>"When I try to open it autocad says to push enter to continue and, when I do, it just goes back to the welcome screen"

See Pauls answer. Try to open the file in AutoCAD, it STOPs now, press [F2] to read more about the issue  (Pauls screenshot).

 

>>"What do you think?"

Add BYBLOCK and BYLAYER LTYPE and it works well

 

But: Your $ACADVER is WRONG! Your file isn't a DXF 2013 format, so please, change it to $ACADVER 1009 (R12 from year 1992).

Autocad will read the file, also withthe wrong acadver value, but it is not clean and can lead you astray.

R12 is a limitation of file settings, object-types and object properties.

 

OR add all informations what are common for DXF2013.

Sebastian

Message 4 of 7

ennujozlagam
Mentor
Mentor

missing or incomplete? nothing inside?

 

 





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.
0 Likes
Message 5 of 7

nickrazes
Participant
Participant

Adding the bylayer and byblock linetypes seems to have done the trick. Also, I can see the error messages now. Thank you all very much for your time and for the replies.

 

One more question. What common information needs to be added to make the file a 2013 dxf file?

 

Thanks again.

0 Likes
Message 6 of 7

cadffm
Consultant
Consultant

Hi,

 


@nickrazes  schrieb:

One more question. What common information needs to be added to make the file a 2013 dxf file?


too much for me and a short reply, sorry.

For example: All informations in HEADER section,

 

1. Your .DXF works

2. Some things can or should be change, but this is a questions of need (not need for a blank drawing)

    for example, the layer definitions or linked objects are incomplete!

    DXFcode 390 (Handle F) -> Where is this item "F" in your DXF? <-- THIS is corrupt situation (acad can fix this, but perhaps not every program)

    DXFcode 347 missing

 

    and more

 

Offtopic: Do you know why you set Layer0 color to 255,255,255 ?

If you don'T know what I mean, delete row 420 and value 16777215 from Layer "0"

 

attached is your Test.dxf, saved in AutoCAD2013 in dxf2013.

and one standard 2013 file (acad.dwt, base for imperial unit drawings) , fresh from AutoCAD2013

 

Sebastian

Message 7 of 7

nickrazes
Participant
Participant

Ok. I think I get what you mean. Thank you for the additional info.

0 Likes