用VB控制CAD R14作图,假如有如下代码:
Private Sub Command1_Click()
Dim AcadApp As AcadApplication
Dim AcadDoc As AcadDocument
Set AcadApp = CreateObject("AutoCAD.application.14")
Set AcadDoc = AcadApp.ActiveDocument
AcadApp.Visible = True
Dim LineObj As AcadLine
Dim StartPoint(0 To 2) As Double
Dim EndPoint(0 To 2) As Double
StartPoint(0) = 2000: StartPoint(1) = 2000
EndPoint(0) = 4000: EndPoint(1) = 4000
Set LineObj = AcadDoc.ModelSpace.AddLine(StartPoint, EndPoint)
End Sub
则运行程序时在屏幕上什么也看不见,必须用缩放命令才能看到所画图形,请问要怎样才能在屏幕上看到画图过程?