Tool measurement on the machine