How to Get List of CADVertex from CADEntityCollection

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
nthangaraj
Posts: 19
Joined: 31 Aug 2017, 09:47

How to Get List of CADVertex from CADEntityCollection

Post by nthangaraj » 18 Sep 2017, 12:10

How to Get List of CADVertex from CADEntityCollection for LWPolygon.Vertexes?

Thanks
Thangaraj N

support
Posts: 3254
Joined: 30 Mar 2005, 11:36
Contact:

Re: How to Get List of CADVertex from CADEntityCollection

Post by support » 18 Sep 2017, 17:24

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply