haplokuon / netDxf

.net dxf Reader-Writer
MIT License
966 stars 393 forks source link

Insert exploding issue. (Reading issue or unsupported type) #475

Open Schulzey opened 11 months ago

Schulzey commented 11 months ago

I have a DXF with a nested insert but each insert only contains empty inserts, no other entity (it should contain Surfaces).

I'm using trueview to track the handle as I'm cycling through the inserts (and block) in netDXF. I'm using insert.explode() to iterate through the entities (but insert.block.entities results the same)

The issue is the insert just contains other inserts (nested) and no other entities are within the block except inserts.

I suspect the nested inserts are being read incorrectly.

Here is the file: MUEB_00_01-08-23.zip

There are some other posts with possible similar issues. https://github.com/haplokuon/netDxf/issues/42#issuecomment-1048344499 https://github.com/haplokuon/netDxf/issues/133

*I realise it could be explained by unsupported types (polygon mesh) - but I'm not sure this is the case. I have tried importing into sketchup, exploding it then exporting back to DXF to check their types.

Cheers

haplokuon commented 11 months ago

Your inserts end up empty because they only contain Surface entities and they are not supported. Read this project home page (readme.md file), you will find the list of entities that this library can read and write.