Page 1 of 1
Losing entities when exporting DXF
Posted: 26 Jul 2017, 18:40
by dt-protec
Hi,
I'm using V11.2 of CAD.NET. I have an issue when exporting one single entity of type INSERT to DXF. When loading the file again, the entity is still there, but not visible anymore. Debugging pointed out that its box has wrong values (-1e+20, +1e+20) after reload.
Any suggestions what's wrong here? Thanks

Re: Losing entities when exporting DXF
Posted: 26 Jul 2017, 19:40
by support
Hello,
Did you load the INSERT entity from a file before saving to DXF or create it programmatically?
Mikhail
Re: Losing entities when exporting DXF
Posted: 27 Jul 2017, 11:53
by dt-protec
I loaded the entity from a DWG file. What I do is to open a DWG file with lots of entities, select a set of them to copy them into a new CADImage and then store them as DXF.
I tried some other things:
- Select all entities and store them: The INSERT entity is lost
- Directly store the whole drawing as DXF: The INSERT entity persists
Re: Losing entities when exporting DXF
Posted: 27 Jul 2017, 18:18
by support
Hello,
If you copy INSERT entities without the BLOCK objects they refer to into a new CADImage, it is not correct. You will have to find a corresponding BLOCK object using a CADInsert.Block property and copy it to a new CADImage instance as well.
Mikhail
Re: Losing entities when exporting DXF
Posted: 28 Jul 2017, 14:27
by dt-protec
Thanks a lot, that solved the problem!