... compare a Point3d with list of Civil3d PointEntity objects to determine if any of these points share the same location? Must work with .NET3.5 and newer. For whatever reasons, every time I think I can use LINQ, based on other's examples I've seen, I get confused as soon as I try to write something to try. I don't know why I'm having such a hard time grasping this, as it sure SEEMS simple. AT any rate, a nudge or two, or three, to get me moving would sure help.
In this example, I have a polyline that I will step through it's vertices and want to get the PointEntity, if any, at each one, returning the PointNumber as a string. The PointEntity has a Location property which is a Point3d object. The points are stored in a List<PointEntity> named points.
List<string> ptnums = new List<string>();
//loop thru vertices, add Pt# to ptnums list if Cogopoint lies at vertex
for (int i = 0; i < pline.EndParam; i++)
{
Point3d vpt = pline.GetPointAtParameter(i);
// use Linq for doing comparison?
}
Or should this be done in a different way?