Distance Mate - Edit

How can I edit an existing distance mate?

I need to change the overall dimension of a distance mate and in some cases flip the dimension. The name of the mate is known.

SolidworksApi macros