Get maximum distance between two object, edges, surfaces, planes

Get maximum distance between two object, edges, surfaces, planes

Maximilian.Prasser
Participant Participant
417 Views
2 Replies
Message 1 of 3

Get maximum distance between two object, edges, surfaces, planes

Maximilian.Prasser
Participant
Participant

Is there any idea, how i can get the maximum distance between two surfaces/edges with ilogic.

Model is variable, so surfaces can change.

MaximilianPrasser_0-1737040252037.png
Thanks

 

0 Likes
418 Views
2 Replies
Replies (2)
Message 2 of 3

C_Haines_ENG
Collaborator
Collaborator

I don't believe Inventors API has any way of accessing the maximum distance. It's theoretically possible but would require very consistent designs that could be predictable by the program.

 

I can get the maximum distance between two faces in terms of X, Y and Z axis, but I don't think I can get a very accurate number if that's what you need. 

 

 

 

0 Likes
Message 3 of 3

ewu9
Enthusiast
Enthusiast

Inventor has a minimum distance function which calculates the shortest linear distance between two objects - I imagine the reason there's no max distance function is because the max distance would be non-linear, and in 3D you can probably draw an infinitely long spline between any two points.
For the image you've posted, if you're just looking for the maximum distance between the top edge and bottom curved edge, there might be a way to do so by extracting the dimensions of the minimum bounding box and calculating the hypotenuse of the longer two edges.

0 Likes