CADVertex ouput problem
Posted: 09 Jul 2019, 09:42
Hello
I got polylines from block
and polyines's vertexes.
I made a list for each values of point x and point y from vertexs.
I would like to write these values in console.
It is a code that I wrote. I'm having a difficult to approach CADVertex Class.
if (block.Entities.EntType == EntityType.LWPolyline)
{
CADLWPolyLine PolylinesData = (CADLWPolyLine)block.Entities;
List<CADVertex> vertexes = new List<CADVertex>();
PolylinesData.Vertexes.ForEach(ent => vertexes.Add(ent as CADVertex));
vertexes.ForEach(Console.WriteLine);
}
Thanks!
I got polylines from block
and polyines's vertexes.
I made a list for each values of point x and point y from vertexs.
I would like to write these values in console.
It is a code that I wrote. I'm having a difficult to approach CADVertex Class.
if (block.Entities.EntType == EntityType.LWPolyline)
{
CADLWPolyLine PolylinesData = (CADLWPolyLine)block.Entities;
List<CADVertex> vertexes = new List<CADVertex>();
PolylinesData.Vertexes.ForEach(ent => vertexes.Add(ent as CADVertex));
vertexes.ForEach(Console.WriteLine);
}
Thanks!