Macro Help, Finding and reporting distance in a msgbox

I'm trying (very unsuccessfully) to write a macro to reportthe minimum distance between two objects in an assembly. One is apart, the other a face. I found the ModelDoc2.ClosestDistance, butcan't seem to get the objects to work. How does ClosestDistancework? What about MeasureDistance? I know some VB, but am apparentlylacking. I don't need it to be real accurate, if it's over 1" Ireport one msgbox, under another (already figured out if-then-elsestatements). The other Challenge is that this assembly will bedriven via Driveworks Express, so the file names will change, but Ithink I have a method figured out to read that in.SolidworksApi macros