These are little programs I use to find hole center and diameter, and to locate top/front/back/left/right edges on a part.
Because my probe has some delay (debounce and wireless transmission) the final probe move is very slow. All the programs do fast moves first to roughly find the edge or center, and then a slow move finds the best possible result.
Beware my probe has a 6mm ball. Adjust as necessary for yours.
Files attached to this page: