I am writting a python program that generates the attached dxf file. When it didn't have text labels it worked fine but now that I added the texts autocad says "Press enter to continue" and it fails importing it. Pressing F2 shows the error:
Customization file loaded successfully. Customization Group: ACAD Customization file loaded successfully. Customization Group: CUSTOM Customization file loaded successfully. Customization Group: AUTODESKSEEK Customization file loaded successfully. Customization Group: MODELDOC Customization file loaded successfully. Customization Group: EXPRESS Customization file loaded successfully. Customization Group: APPMANAGER Customization file loaded successfully. Customization Group: FEATUREDAPPS The following error was encountered while reading in TEXT starting at line 6234: Invalid DXF data. Invalid or incomplete DXF input -- drawing discarded.
Looking up the indicated line, I have:
(......) 11204.187099999999 20 623.359200000000 0 TEXT --> line 6234 5 4D 100 AcDbEntity 8 0 6 ByLayer 62 256 100 AcDbText 10 0.000000000000 20 629.860900000000 30 0.000000000000 40 5 1 0 V0 50 0.0 41 1 51 0 7 71 0 210 0 220 0 230 1 100 AcDbText 0 LWPOLYLINE 5 1705412245488 330 1F 100 AcDbEntity 8 None 62 255 100 AcDbPolyline 90 2 70 0 43 0.0 10 0.000000000000 20 649.860900000000 10 0.000000000000 20 609.860900000000 0 TEXT 5 4D 100 AcDbEntity (.....)
If I open this same file with LibreCad and save it, the resulting file opens perfectly with AutoCad. So what is exactly wrong with this file?
Solved! Go to Solution.
Solved by artc2. Go to Solution.
When I try to open your dxf, it crashes acad. If I try to open it in Notepad, its missing a lot of carriage returns. If I start a dwg from acad.dwt and add a TEXT entity, then save as dxf, it seems that compared to your section, you are missing some group codes.
Also, you might want to check out this repository on github. It is a reader/writer for python.
This is the Librecad Generated file. I just had to drag the file to librecad and it already displayed it correctly. Then I went to to File-> Save as to generate the file apent on this message. It works on AutoCad.
To All...
I'm having similar issues with importing a DXF file, (refer to PDF attachment).
I've even tried opening the file in Navisworks, just to view the floor plan.
Any help would be appreciated.
Thanks in advance,
Milt
And did you read the answer above? Librecad helps for many DXF-issues (corrupt data information) from non-Autodesk products.
Sebastian
Can't find what you're looking for? Ask the community or share your knowledge.