Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXF read error on line 122. Invalid or incomplete DXF input #154

Open
darzonline2016 opened this issue Jan 22, 2021 · 1 comment
Open

DXF read error on line 122. Invalid or incomplete DXF input #154

darzonline2016 opened this issue Jan 22, 2021 · 1 comment

Comments

@darzonline2016
Copy link

Please help.
Autocad returns error as " DXF read error on line 122. Invalid or incomplete DXF input - - drawing discarded."
Any suggestion how to fix this? dxf file is attached.

TEST_TOWER.zip

Thanks.

@brettfo
Copy link
Member

brettfo commented Jan 22, 2021

I can't find anything obviously incorrect with the file you provided, but AutoCAD is notoriously picky with what it will accept. I was able to open your drawing in AutoCAD 2016 by doing the following:

DxfFile dxfFile = ...; // however you're opening/creating the drawing
dxfFile.Header.Version = DxfAcadVersion.R14; // AutoCAD seems more tolerant of R14 files
dxfFile.Normalize(); // AutoCAD is very pick about the relationships between objects, and this sets those
dxfFile.Save("path/to/TEST_TOWER.dxf");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants