How to change the hole tolerance using macro?

I wrote a couple function to change do slip fit and press fit hole tolerance, but it does not work. Would someone please help?

SolidworksApi macros