Limit Mate question

I'd like to have the Maximum Distance value of a Limit Matebe tied to a part's dimension. In other words, if I change the sizeof the part, the Maximum Distance will also change. I've triedputting a Dimension Name in the value box (example: D5@Sketch1),but it's rejected. I also thought about using an equation, but Ican't figure out how to find the name of the Maximum Distancedimension. Can anybody help me out?SolidworksAssemblies