Product : Engine, Version : 4.1.6.1028, ArticleID : 41023326

HowTo : Get the vertex list values of a polyline in C#

Article41023326
TypeHowTo
ProductEngine
Version4.1.6.1028
Date Added12/8/2003
Submitted byTakis
Keywords

Subject

Get the vertex list values of a polyline in C#

Summary

Get the vertex list values of a polyline in C#

Solution

double[] pt; 

VDProLib.vdPolyline mypol;

pt = new double[] { 0, 0, 0 };

mypol=vdpro.ActiveDocument.Entities.AddPolyLine(new object[] {0,1,0, 5,7,0, 4,5,0});

VDProLib.vdFigure fig;

VDProLib.vdPolyline mypol;

object myobj;

fig = vdpro.ActiveDocument.Entities.Start;

while (fig != null)

{

if (fig.Type == "VDPOLYLINE")

{

mypol = (VDProLib.vdPolyline)fig;

myobj=(System.Object)mypol.VertexList;

}

fig = vdpro.ActiveDocument.Entities.Next;

}