Message 1 of 18
Not applicable
05-11-2020
12:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All
Can anyone tell me were I am going wrong ,it returns a mismatch?
thanks in advance
Private Sub CommandButton6_Click()
Dim plineObj As AcadLWPolyline
Dim pts(0 To 7) As Double
Me.Hide
pts(1) = ThisDrawing.Utility.GetPoint(, "Pick lowerleft Corner")
pts(2) = Val(TextBox63.Text): pts(2) = Val(TextBox64.Text)
pts(4) = Val(TextBox65.Text): pts(5) = Val(TextBox66.Text)
pts(6) = Val(TextBox67.Text): pts(7) = Val(TextBox68.Text)
Set plineObj = ThisDrawing.ModelSpace.AddLightWeightPolyline(points)
plineObj.Closed = True
End Sub
Solved! Go to Solution.