Hello,
I'm runngin AutoCAD 2006 and have built an application with VBA. I've got the following code in my application in an attempt to create a six sided shape programmatically:
Private Sub cmdTest_Click()
Dim Points(5) As Double
Dim PLine As AcadLWPolyline
Dim SelectionSet As AcadSelectionSet
Points(0) = 20: Points(1) = 20: Points(2) = 20
Points(3) = 20: Points(4) = 20
Set AcadPolyline = ThisDrawing.ModelSpace.AddLightWeightPolyline(Points)
ZoomAll
End Sub
All I get is a straight line. What am I missing here? Any help is greatly appreciated.
Thanks,
T-Tops
I'm runngin AutoCAD 2006 and have built an application with VBA. I've got the following code in my application in an attempt to create a six sided shape programmatically:
Private Sub cmdTest_Click()
Dim Points(5) As Double
Dim PLine As AcadLWPolyline
Dim SelectionSet As AcadSelectionSet
Points(0) = 20: Points(1) = 20: Points(2) = 20
Points(3) = 20: Points(4) = 20
Set AcadPolyline = ThisDrawing.ModelSpace.AddLightWeightPolyline(Points)
ZoomAll
End Sub
All I get is a straight line. What am I missing here? Any help is greatly appreciated.
Thanks,
T-Tops