ThisDrawing.Application.Documents.Open "C:\Documents and Settings\ASUS\桌面\test-result\1.dwg" ThisDrawing.SaveAs "C:\Documents and Settings\ASUS\桌面\test-result\11.dwg" ThisDrawing.Application.Documents.Open "C:\Documents and Settings\ASUS\桌面\test-result\2.dwg" ThisDrawing.SaveAs "C:\Documents and Settings\ASUS\桌面\test-result\22.dwg" 我的程序需要不断打开dwg文件,再对dwg文件作些修改后再重新保存,如上面所示,在打开第二个文件时,AutoCAD卡住,命令行提示"宏名称(M)",关闭程序后总提示"还有一个命令没有执行完",无论怎么按ESC都没有反应 |