CAD/CAM discussion forum > CAD > Probelmas definition for points and points list

Probelmas definition for points and points list

    
  Subscribe Topic

Rank: 1

carlos6360

Newbie

posts: 2

Registered: 2014-6-5

Message 1 of 1

 Probelmas definition for points and points list
06-06-2014 05:56 . am   |   View his/her posts only
Hi Jenny.

I'm trying to migrate a VBA routine Autocad ZWCAD. I have problems defining variables point and point list or vertices.

Teruego check the following:
-----------------------------------------------------------------------
Public Sub AñadirListaPuntos(ArregloX() As Double, ArregloY() As Double, Z As Double, NPuntos As Integer, VERTICES As ZcadPoints)
'ArregloX, ArregloY, Z, NPuntos These are input variables.
'Vertices is a list of points to generate a polyline.

Dim i As Integer
Dim pto As ZcadPoint
For i = 1 To NPuntos

pto(0) = ArregloX(i)
pto(1) = ArregloY(i)
pto(2) = Z

VERTICES.Add pto(0), pto(1), pto(2), i - 1

Next i
End Sub
---------------------------------------------------------------------------------
Thanks
See also
X