Autocad文件SaveAs COMException [英] Autocad file SaveAs COMException
本文介绍了Autocad文件SaveAs COMException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我想用现有的autocad文件创建一个新的autocad文件。只对文件中的一些更改然后保存为具有新名称的文件。有时它会给出System.Runtime.InteropServices.COMException(0x80210063):保存文档异常时出错。
,例如如果我必须使用现有的10个图纸创建10个图纸,那么有时它会给一个或多个图纸文件提供COMException。
Amol。
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.
推荐答案
根据我在互联网上阅读的内容,它可能与代码实现有关。
看看这个讨论:保存和关闭图纸 [ ^ ]
尝试类似:
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:
doc.Database.SaveAs(srcFile, DwgVersion.Current)
//then close it
doc.CloseAndDiscard();
i怀疑你是以只读方式打开文件。
示例:Document NewDoc = acDocMgr.Open(PathAndDrawing,false); // true =以只读方式打开
尝试使用false。
karl
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
这篇关于Autocad文件SaveAs COMException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文