Instead calculating distance and divided by 2
mark 4 surfaces and part will be placed in center between opening surface
Solidworks have this last 15 years and its great feature
Please, show an example.
sorry the title should be Mating between surfaces
don't know how to update title
4 surfaces from inserted part and opening
by selecting require surfaces part will be placed in the middle of opening w/o calculating distances