Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,


I want to create a new autocad file using existing autocad file. Only some changes in a file and then SaveAs the file with new name. Some times it gives the System.Runtime.InteropServices.COMException (0x80210063): Error saving the document Exception.
e.g. If i have to create the 10 drawings using existing 10 drawings then some time it gives COMException to one or more drawing file.

Amol.
Posted
Updated 3-Aug-12 0:32am
v3

Based on what I read on internet, it might be related to code implementation.
Have a look at this discussion: Saving and Closing a Drawing[^]
Try something like:
C#
doc.Database.SaveAs(srcFile, DwgVersion.Current)
//then close it
doc.CloseAndDiscard();
 
Share this answer
 
hi,
i suspect that you are opening the file as read only.

example: Document NewDoc = acDocMgr.Open(PathAndDrawing, false);//true=open as read only

try using "false".

karl
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900