Page 1 of 1

How to Get List of CADVertex from CADEntityCollection

Posted: 18 Sep 2017, 12:10
by nthangaraj
How to Get List of CADVertex from CADEntityCollection for LWPolygon.Vertexes?

Thanks
Thangaraj N

Re: How to Get List of CADVertex from CADEntityCollection

Posted: 18 Sep 2017, 17:24
by support
Hello,

You can use the following code:

Code: Select all

using CADImport;
using System.Collections.Generic;
...

CADLWPolyLine lwPolyline;
...

List<CADVertex> vertexes = new List<CADVertex>();
lwPolyline.Vertexes.ForEach(ent => vertexes.Add(ent as CADVertex));
Mikhail