What I have to do is first determine a point at floor level. Then a point at the top level followed by up to 7 more points located somewhere between the floor level and the top level. I am able to create the collection of points okay, but I need to get two height variables for each point except the floor level point.
So, I need to know the distance from the floor level point and the top level point, then from the floor level to the next selected point (the selected points may be in random order - floor level, top level, level 3, level 4, level 2, level 1). This makes up the first set of distances I need.
The second set of distances I need is the spread between each point. So, in a 6 level drawing I need to know how far is the 1st level point from the floor point, then how far is the 2nd level point from the 1st level point and so on up the to top level.
I can have anywhere from 2 levels to 8 levels to work with. Also, all points are in a vertical line so their X value should all be the same.
The final problem and why I have to figure out how to get DistanceTo to work is that orientation of the view will be below the X plane of the drawing so Y will be going from the largest negative number at floor level up the lowest negative number for the top level. Or it could be a rotated view and UCS.
So far, I cannot get DistanceTo to work in C# nor can I get GetDistance to work.
Any suggestion will be greatly appreciated!