本帖最后由 作者 于 2007-12-21 23:23:11 编辑
Sub ls() Dim Pl As AcadLWPolyline, Ppl As AcadPolyline, PpLl As AcadPolyline Dim Ent As AcadEntity Dim aa() As Double, bb() As Integer Dim plineObj As AcadLWPolyline Set Ppl = ThisDrawing.HandleToObject("87") ReDim aa(0 To UBound(Ppl.Coordinates)) As Double For jj = 0 To UBound(Ppl.Coordinates) aa(jj) = Ppl.Coordinates(jj) Next jj Set PpLl = ThisDrawing.ModelSpace.AddPolyline(aa) PpLl.color = acRed ThisDrawing.SendCommand "_Pedit" & vbCr & "l" & vbCr & "f" & vbCr & vbCr Debug.Print End Sub
|