Some times it's a very small ledge at the bottom of a hole. Some times it's a rib on a boss.
When things get really tight and I have a multiple cavities where I know I'll have slight differences.
I use other features to allow for good hits.
Here I measure the Diameter, take the radius from that feature "CIR4.R.ACTL"
I'm using a Ø2mm probe tip so I subtract half the tip "1mm" plus enough so that I will miss the wall but yet stay very close to it "0.125mm" and assign that to FRM_CENT1
Then I take a point after which I edit that point by placing my new "FRM_CENT1" the first position of the "THEO" and the "TARG".
This allows for the cavities and/or part to part to very and the CMM to still make good touches.
Well I do like to see the way people come up with code and use it ( I learn much from it ), this is a case of redundancy. There are many ways to skin this cat, one being relative measure, another making the center of the hole a temp origin.
I give you marks for showing your work, but deduct a couple for the time it takes...lol
I am sure this idea of this kind of coding will come in handy elsewhere though, good thinking !
Well I do like to see the way people come up with code and use it ( I learn much from it ), this is a case of redundancy. There are many ways to skin this cat, one being relative measure, another making the center of the hole a temp origin.
I give you marks for showing your work, but deduct a couple for the time it takes...lol
I am sure this idea of this kind of coding will come in handy elsewhere though, good thinking !