To locate the center point between two holes for gripping, how should the project be set up?

There are two different models of the workpieces.
Of different workpiece models, the distances between two holes on individual workpieces are different.

You can point one axis of a pose towards another pose, and then move half of the distance between two points in this direction.
Please refer to the diagram below for the implementation method:


Modify the process according to the actual situation. :boy:

Thanks!!!