Read a tolerance value in tolerance frame and change it

Hi every bodies , I want to read a tolerance frame and get the tolerance value from It. after that , I would like to change the tolerance value inside the tolerance frame using API ! its possible? thank you very much

SolidworksApi macros