How to reverse polyline direction programmatically vb.net
Comments
-
your right, the method seem so have no effect, you might be able to do something long hand I.e.
[code]
if (lwp != null)
{
Polyline pline = new Polyline(lwp.NumberOfVertices);
pline.SetPropertiesFrom(lwp);
for (int i = 0, j = lwp.NumberOfVertices - 1; i < lwp.NumberOfVertices; j--, i++)
{
pline.AddVertexAt(i,
lwp.GetPoint2dAt(j),
lwp.GetBulgeAt(j),
lwp.GetStartWidthAt(j),
lwp.GetEndWidthAt(j));
}
lwp.HandOverTo(pline, true, true);
}
[/code]
0 -
Daniel,
Thank you for the reply. I have no option but to do long method.
Anyway, the SetPropertiesFrom is helpful to me.
Thanks again.
Marlon
0