[求助]关闭文档出错
<p> <br/> static public void MultiSheetPlot()<br/> {<br/> //打开<br/> Document doc1 = Application.DocumentManager.Open(@"D:\1200图框.dwg", false);<br/> Application.DocumentManager.MdiActiveDocument = doc1;<br/> }<br/> <br/> static public void MultiSheetPlot3()<br/> {</p><p>Application.DocumentManager.MdiActiveDocument.CloseAndDiscard();<br/> }</p><p>执行m3时cad已经有两个文档,但是出错,为什么呢?</p> <br/> static public void MultiSheetPlot()<br/> {<br/> //打开<br/> Document doc1 = Application.DocumentManager.Open(@"D:\1200图框.dwg", false);<br/> }<br/> <br/> static public void MultiSheetPlot3()<br/> {<br/> Application.DocumentManager.MdiActiveDocument.CloseAndDiscard();<br/> }
页:
[1]