Joe- look in your SbParts folder, there should be two programs:
sample_Center_inHole.sbp
sample_Center_inHole_wZtest.sbp
The first one only finds the center of a hole, the second one centers in the hole and does a zzero also.
Use these routines to create your own, or just use them. I have versions of these for my copper sweat fitting XY zeros. The sweat fitting will do XYandZ if you can seat the vertical position of the cap with sufficient accuracy. Usually I use the sweat fitting for X and Y only, then use the ZZero plate for the Z location.
Read the documentation in the developers folder next to the SB3 executable in the program files.
When you make changes to working code, only change one thing, then test it. If you change two things its easy to get confused as to which one introduced a new problem.
D
"The best thing about building something new is either you succeed or learn something. Its a win-win situation."
--Greg Westbrook