Hi
I am facing the mentioned error while adding lightweightpolyline by supplying the vertices array list here i am filling the vertices values by using the XAix arraylist and YAxis arraylist, here is my code in C#.Net so please try to solve it
tempp = 0;
axistemp = 0;
AcadLWPolyline pollyObj ;
vert = (vert * 2);
object[] vertices = new object [vert];
for (i = 0; i < ((vert / 2)); i++)
{
vertices[tempp] = XAix[axistemp];
vertices[tempp + 1] = YAix[axistemp];
tempp = tempp + 2;
axistemp = axistemp + 1;
}
try
{
objMspace = acdDoc.ModelSpace;
pollyObj = objMspace.AddLightWeightPolyline(vertices);
pollyObj.Closed = true;
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}
}