[求助]
<P>求助你好:我的程序在此:</P><P>Private Sub Command1_Click()<BR> On Error Resume Next<BR> Dim acadApp As AcadApplication<BR> Set acadApp = GetObject(, "AutoCAD.Application")<BR> acaApp.Command = script.exe<BR> If Err Then<BR> Err.Clear<BR> Set acadApp = CreateObject("AutoCAD.Application")<BR> If Err Then<BR> MsgBox Err.Description<BR> Exit Sub<BR> End If<BR> End If<BR>Dim plineobj As Autocad.AcadLWPolyline<BR> Dim points(0 To 5) As Double<BR> points(0) = 1: points(1) = 1<BR> points(2) = 100: points(3) = 100<BR> points(4) = 200: points(5) = 200<BR> Set plineobj = acadApp.ActiveDocument.ModelSpace.AddlightweightLWPolyline(points)<BR> plineobj.Closed = ture<BR> ZoomExtents<BR> ZoomAll<BR>acadApp.Visible = True<BR>End Sub</P>
<P>谢谢你!总算有侠义之士了</P> 不好意思,不懂 没关系了,共同学习,谢谢!
页:
[1]