corrupted dxf/dwg
corrupted dxf/dwg
hello forum,
if you edit a dxf file and add a carriage return in the file, dwgdirect cannot load the file anymore.
but opendwg could.
my problem is that i could read some corrupted dxf with opendwg but i cannot anymore with dwgdirect.
is there a function in dwgdirect that is able to analyse a dxf/dwg file and to tell what field(s)/line(s) are wrong in the file ?
autocad is unable to load such files and even may crash.
currently where is no a function which points to a line which cause the error.
but dwgdirect's recoverfile() most probably will load the file (this may depend on the position of extra line in file). if it's inside an entity/object the entity will be skipped but you will get its handle.
try file/recover in odamfcapp sample.
sergey slezkin
in the attached file, there is a carriage return at line 194 which causes an "invalid group code" error when trying to recover it.
opendwg could read it.
do you plan to enhance the recover method ?
attached files (11.1 kb, 2 views)
last edited by
jroche@cni.fr; 5th march 2009 at 12:24 amfff">.
please, could you answer the question above ?
i added cr 5662: "add diagnostics message for line number/offset in case of dxf loading failed."
it's impossible to heal all types of file corruption. and in very many cases dd is already able to fix files which can't be repaired by autocad.
sergey slezkin