Losing entities when exporting DXF
Moderators: SDS, support, admin
Losing entities when exporting DXF
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
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
Hello,
Did you load the INSERT entity from a file before saving to DXF or create it programmatically?
Mikhail
Did you load the INSERT entity from a file before saving to DXF or create it programmatically?
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Losing entities when exporting DXF
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
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
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
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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Losing entities when exporting DXF
Thanks a lot, that solved the problem!