Creates and returns a new 4 sized Array object. The first element of the Array represents the x value of the vertex, the second element the y
vertex, the third the z vertex and the fourth the bulge of the vertex.
Syntax
Parameters
Return Value
A 4 sized Array object containing the x, y, z, bulge values of the vertex.
Example
C# | Copy Code |
---|
function AddPolyline() { var vdcanvas = vdmanager.vdrawObject('canvas'); var vertexes = [vdgeo.newvertex(-20, -20, 0 , 0),vdgeo.newvertex(-20, 10, 0 , 0.5), vdgeo.newvertex(30, 15, 0 , 0), vdgeo.newvertex(30, 0, 0 , 0)]; var vdPolyline = vdcanvas.AddPolyline(vertexes, false); vdPolyline.Flag = 1; vdcanvas.zoomExtents(); vdcanvas.redraw(); } |
See Also