7 Replies Latest reply on Oct 21, 2015 10:36 AM by Patrick Jensen

    Distance between two 3d points

    Mohammed Gh

      I am in an assembly file made of four parts. each part has one 3d sketch that contains one point.I want to measure the distance between the four points.


      Bellow is my approach. Is there an easy/simple way to do it instead?

       

      Thanks

       

      My approach is:

      - Open each part file and access to sketch and get the coordinates of the point relative to the part model

      - Open the assembly file and get the transformation matrix for each part, apply the transformation to the point and get the coordinates of the points in the assembly model

      - When I have all the coordinates in the assembly model, it is easy to measure the distance using the distance formula sqrt( (x2-x1)^2+(y2-n1)^2)