@ozgiac If I understand correctly, you are trying to automate the process of calculating the offset from the BL Touch probe trigger point to the nozzle, to maker it easier for end users of your printers.
That being the case, then have you considered doing away with the BL Touch and using the nozzle itself as the probe? Then there is no offset to worry about.
It can be accomplished a couple of ways. One way is to use a piezo sensor, similar to the smart effector. Another way (which is how I do it) is to use a "simple" precision positioning switch but for that the mechanics are quite complicated as the hot end needs to be able to move a mm or so in Z but be constrained from any other movement in X or Y.
Either way involves a bit of re-designing but once that's done you'll have a reliable and trouble free way of homing Z which is fairly "user error proof" and may reduce production costs.