Quantcast
Viewing all articles
Browse latest Browse all 14319

AcDbDatabase::dxfout

Here is the situatlion:

 

The default file format in the AutoCAD Options Dialog is set to AutoCAD 2010 DXF.

 

If I open a DXf file, make a modification to it and save it using the QSave command, AutoCAD will make a backup copy of the dxf file and save the new version.

 

If I do the same thing but use my own ARX command to save the file using the AcDbDatabase::dxfOut function, the function returns an "eFileAccessErr" status code and AutoCAD fails to create the backup file or save the DXF file.

 

If I set the default format to a drawing format, load a drawing and use the AcDbDatabase::saveAs function in my command to save the file, AutoCAD will make a backup copy and save the DWG file.

 

Is it possible to use the AcDbDatabase::dxfOut function to make a backup copy of the loaded DXF file and save a new copy like the saveAs function does for drawing files?

If so, what do I need to do to my code to make it work.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 14319

Trending Articles