OK, In that case, I'm confused as to why you are comparing the 2 y values. If you just want the text below the DimText you should get the DIMGAP variable then subtract that value from the Dim's y for the Text's new y. You should also set the Text's alignment type to TopCenter, which means setting the Text's group 11 value instead of the group 10.
Make sense?