trouble opening DXF - no error provided

trouble opening DXF - no error provided

damianshelton77
Observer Observer
1,369 Views
3 Replies
Message 1 of 4

trouble opening DXF - no error provided

damianshelton77
Observer
Observer

Hi, i'm having trouble opening a DXF file in autocad online viewer and autocad 2023 (trial version)

The file was created by an app that i'm developing using a plug in that was developed by a third party. 

I can open the file and see the image through gmail and using another online viewer called sharecad.org. 

The end user requires that it open correctly in autocad. 

 

Unfortunately it doesn't provide me with an error code or some reference to the problem.

 

This forum removed the file, so i've simply renamed it from .dxf to .txt

 

Any help would be appreciated. Kind regards,

Damian

0 Likes
Accepted solutions (1)
1,370 Views
3 Replies
Replies (3)
Message 2 of 4

pendean
Community Legend
Community Legend

@damianshelton77 wrote:

Unfortunately it doesn't provide me with an error code or some reference to the problem.


AutoCAd 2021 reports the problem is...

 

"The following error was encountered while reading
in LWPOLYLINE starting at line 2650:
Class separator for class AcDbEntity expected
Invalid or incomplete DXF input -- drawing discarded."

 

I bet yours did too: CTRL+F2 then scroll up.

 

HTH

0 Likes
Message 3 of 4

artc2
Autodesk
Autodesk
Accepted solution
The error I get is:

Bad handle 273: already in use
The following error was encountered while reading
in LWPOLYLINE starting at line 2650:
Class separator for class AcDbEntity expected
Invalid or incomplete DXF input -- drawing discarded.

Looking at the dxf file, it appears that all of the polylines have the same handle. When I fix that (and adjust the handseed value to allow for the handle values now used), the file reads into AutoCAD without error. So, the missing class separator error is just the result of the dxfin parser getting messed up by the duplicate handles.
Message 4 of 4

damianshelton77
Observer
Observer
SOLVED.

thank you so much, that was the problem. I changed my code to use a
different handle and now it works.
0 Likes