I get this error when I try to open a drawing I just created.
If I answer NO the file is opened. If I Audit the file it is clean. If I run Recover on the file it is clean.
The template file I use to create the new drawing is clean as well.
Here is the code I'm using to create the file:
Document odoc;
if (File.Exists(myFile) == false)
{
// create a file
odoc = acadApp.DocumentManager.Add(myBlankTemplateFile);
Database db = odoc.Database;
db.SaveAs(myFile, DwgVersion.AC1015);
db.CloseInput(true);
odoc.CloseAndDiscard();
}
odoc = acadApp.DocumentManager.Open(myFile, false);
The error happens when the line
odoc = acadApp.DocumentManager.Open(myFile, false);
is executed but ONLY if the file gets created.
If the file exists and the creation structure is bypassed there is NO ERROR.
Perhaps I am not creating the drawing file correctly or not completing the creation process.