How can a DXF file be validated?

Use this forum to ask questions about how to do things in dxflib.

Moderator: andrew

How can a DXF file be validated?

Postby Cambridge Ray » Sat Nov 24, 2012 12:08 am

I am developing an application similar to the Windows Search. It performs a recursive search, looks for some items inside the DXF file and proceeds to the next. There may be hundreds or even thousands of files, so expediency is a must.

My problem is that when confronted with an in invalid DXF file, the library -like the Energizer bunny- keeps going and going and going:

DXF read error: Line: 1
DXF read error: trying to fix..
[...]
and so on, and so forth...

It does not know when to quit: Even an empty file seems to be acceptable.

TIA,

-RFH
Cambridge Ray
Junior Member
 
Posts: 15
Joined: Wed Oct 03, 2012 5:26 pm

Return to dxflib 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 2 guests

cron