How to change box volume?

Change dimension Error see follow

Error Volume in Feet1   A serious error occurred during macro playback. Perhaps the macro was not played in the correct context. The system could be in an unstable state now.

SolidworksApi macros