how to update the custom value / text expression to evaluted value by using macro

refer above image , i need to be update the custom value / text expression to evaluted value by using macro

SolidworksApi macros