OK, I explained this a couple ways in the past. Didn't seem to make clear what I need. I'm back on the project and once again trying to resolve this issue.

I'm doing this all off line on a CAD model. Not an actual part. So I can compare results to print, etc.

So . . . Let's say you have a tennis ball sitting in the lower left corner, and a basketball in the upper right corner.

I need to know the shortest distance between the farthest point on the tennis ball in X (farthest point to the right), to the closest point to the basketball surface, surface to surface, not center to center. PLUS . . . they aren't really round. Nearly round. (Actual part, 2 curved surfaces. See attached sketch)

So . . . I did work on this. I was able to do a couple things.

1). I wrote a little code . . . finds the highest point (point in "X" that's farthest to the right.) of 20 measured points on a curve. THIS is my origin. Highest point on my trailing edge in X direction!

Problem 1 . . . I need the Y & Z value of that same point. Yeah, I got the "value" of the highest X point. But I need to create a generic point using that X valus, AND the YZ value for that same point. (See sketch)

I scroll up. Find the point that had the greatest X value. Let's say that point was at . . .

X .1250, Y .2511, Z 1.5000

I need to "match up" the values. My code "found" the .1250 to be the greatest value of the points in X, but I need to associate that now with the other two values.

So when I make the generic point, I can use the value of the variable for X, and also the real value for Y & Z for the point that was highest at the X+.. (Make sense?)

Basically, hit points along the surface, and find the XYZ value of THE 1 point farthest in X+.

Problem 2 . . . Then I need to get the shortest distance between that point, and the curved surface in the upper right corner.

I scanned, and converted to points, along that surface, and know I covered where that shortest point is. (I made a series of lines, and 2d/3d measurements between the high point on leading edge to the points I measured on curve 2 to prove it out.)

Now I need to make it programmatic.

To prove it out, I found my high points in my variable statements and confirmed them looking at the actual points measured. Then set my origin at the high point.

But I need to do it programmatically.

Any help would be much appreciated.

Wayne

I'm doing this all off line on a CAD model. Not an actual part. So I can compare results to print, etc.

So . . . Let's say you have a tennis ball sitting in the lower left corner, and a basketball in the upper right corner.

I need to know the shortest distance between the farthest point on the tennis ball in X (farthest point to the right), to the closest point to the basketball surface, surface to surface, not center to center. PLUS . . . they aren't really round. Nearly round. (Actual part, 2 curved surfaces. See attached sketch)

So . . . I did work on this. I was able to do a couple things.

1). I wrote a little code . . . finds the highest point (point in "X" that's farthest to the right.) of 20 measured points on a curve. THIS is my origin. Highest point on my trailing edge in X direction!

Problem 1 . . . I need the Y & Z value of that same point. Yeah, I got the "value" of the highest X point. But I need to create a generic point using that X valus, AND the YZ value for that same point. (See sketch)

I scroll up. Find the point that had the greatest X value. Let's say that point was at . . .

X .1250, Y .2511, Z 1.5000

I need to "match up" the values. My code "found" the .1250 to be the greatest value of the points in X, but I need to associate that now with the other two values.

So when I make the generic point, I can use the value of the variable for X, and also the real value for Y & Z for the point that was highest at the X+.. (Make sense?)

Basically, hit points along the surface, and find the XYZ value of THE 1 point farthest in X+.

Problem 2 . . . Then I need to get the shortest distance between that point, and the curved surface in the upper right corner.

I scanned, and converted to points, along that surface, and know I covered where that shortest point is. (I made a series of lines, and 2d/3d measurements between the high point on leading edge to the points I measured on curve 2 to prove it out.)

Now I need to make it programmatic.

To prove it out, I found my high points in my variable statements and confirmed them looking at the actual points measured. Then set my origin at the high point.

But I need to do it programmatically.

Any help would be much appreciated.

Wayne

## Comment