Message 1 of 5
Issue with saveas(sfile) in ObjectARX 2018 in a specific situation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In a specific scenario using saveas(sfile) to save in ObjectARX 2018, after reopening the saved DWG file, it prompts that an object in a dictionary needs to be recovery. This occurs when a certain dictionary object is deleted. However, the issue does not occur if saveas(sfile,false) is used or saveas(sfile) in ObjectARX 2022.
My code like:
auto pDb = new AcDbDatabase(false, true);
auto es = pDb->readDwgFile(sPath.c_str(), AcDbDatabase::kForReadAndReadShare);
... do something
es = pDb->saveas(sPath);
The above code runs in an environment with current document and workingdatabase.
How to find out why it happened?