How to select a dimension from its length value?

In a drawing there is a dimension i need to select the dimension from it value i.e "4.000", or is it possible to get the name of the dimension from the value ?

SolidworksApi macros