haplokuon / netDxf

.net dxf Reader-Writer
MIT License
1.01k stars 411 forks source link

Block Name not found #388

Open Chiron67 opened 2 years ago

Chiron67 commented 2 years ago

Hello please can you help me. i got this exception System.Exception : 'The block record UNFOLD is not defined.'

W-07-027 S.3 POS 40.dxf.zip just remove the .zip extension .dxf upload are not allowed

thank you

haplokuon commented 2 years ago

Your file is pretty broken, it lacks the BLOCK_RECORD TABLE for the UNFOLD block. You can try it with Autodesk DWG TrueView it will show the same issue and will discard the drawing. Also, the entities of the UNFOLD block do not have handles assigned.

A workaround for these problems is possible but for more complex drawings it might have unexpected side effects. In any case this does not forgive the program that created the DXF for doing such a poor job.

Chiron67 commented 2 years ago

Hi , thanks for your reply and anotation, i have installed the autodesk DWG Trueview, but i cannot follow up your lack problem, the drawing is still visible. 2022-06-27 094908

using edrawing and also autocad do not give me some Block_record anomaly. 2022-06-27 095228

4425-Test-S-150x150.zip

maybe the file was corrupted when uploading , i have zipped them thank you

haplokuon commented 2 years ago

This second file you posted is new and different from the one in your first post. In this case the file has been saved as a pre-AutoCad2000 version. This library is only compatible with versions AutoCad2000 and upwards.