This should work:
Sub RunScript(ByVal x As OnCurve)
Dim points As New List( Of On3dPoint)
Dim pline As New OnPolyline
Dim i As Integer
If x.IsPolyline(pline) Then
For i = 0 To pline.Count()
Dim pt As New On3dPoint
pt = pline(i)
points.Add(pt)
Next
End If
A = points
End Sub
On Feb 18, 2:53 pm, stigvg <[email protected]> wrote:
> Hi ,,, VB Newbee question
>
> Is it possible to extract points from a polyline inside a vb.net
> component.?
>
> Input is a polyline
> Output should be a list of on3dpoints or arrayon3Dpoints (the
> controlpoints from the polyline)
>
> I know that I can explode the polyline and in that way getting my
> points,
> but I need to do it inside a loop in the vb component.
>
> -I am trying to improve in using the vb tool.