[求助]帮我看一下
Public Sub startcad()<BR> On Error Resume Next<BR> Set acadapp = CreateObject("AutoCAD.Application")<BR> Set acaddoc = acadapp.ActiveDocument<BR> If Err Then<BR> MsgBox Err.Description<BR> Exit Sub<BR> End If<BR> acadapp.Visible = True<BR> acadapp.Top = 0 '设置AutoCad窗口的位置<BR> acadapp.Left = 0<BR> acadapp.Caption = "CORECAD" '设置AutoCad窗口的标题<BR> <FONT color=#ff0000> acaddoc.New ("coremode2.dwt")</FONT><BR> End Sub<BR>意思是用模版文件("coremode2.dwt")新建一个文件,在r14下通过,在2002下不行,请帮我诊断一下。谢谢 acadapp.Documents.Add "acad.dwt" 可以了,谢谢
页:
[1]