Message 1 of 3
Save in AcCoreConsole
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I plan to migrate some functions from AutoCAD to AcCoreConsole. now I have to problem to save the drawing.
here is the original code works in AutoCAD, I cannot make it compile with AcCoreConsole. I think it must be related to AcMgd.dll.
AcadDocument acadDoc = DocumentExtension.GetAcadDocument(Active.Document) as AcadDocument;
acadDoc.Invoke("Save", new object[0]);
so I change the code to:
Application.DocumentManager.MdiActiveDocument.Database.SaveAs(fileName, version);
then I got error message:
eFileSharingViolation
after this change code to:
Active.Database.Save();
then error message change to
eFileInternalErr
What should I do?
Thank you so much for your help
Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023