I have tested your code, it works perfectly,but when i remove entities and layers and i save to DXF file. ( i have 4 layers)
If i open the file was been created , layers are come back. ( i have 6 layers)
to save i use the fallowing code:
Code: Select all
this->CADviewer->SaveAsDXF();