Not quite sure what you mean but think all you would need to do is have the macro write the tool height to the tool table.
I do my tool height setting with a setter I made which uses a glass scale and that is fed into Mach, I can then just place a tool in it, press a button on the Mach screen and then it will ask me which tool number I want to set it as. It then writes to the tool table and I can place it into the tool changer at the correct position.
Hood