I'll give you a possible solution which may spur either of the John's to come
up with a more elegant approach.
Let me preface this by saying that part of the issue is the order in which
items are glued together. Usually, the shapes are placed, and then the
dimension shape added. That way, it is glued to the two shapes and changes
with their movement. Doesn't work the other way around. But...
Take your basic dimension shape and add two connector points, one on each
leg end that normally attaches to the shapes. Open the shapesheet and make
sure that the Type / C cell value is "0". (No quotes.)
Now, add connection points to the shapes in question. Again, open their
shapesheets and make sure the connection point Type / C cell value is "1".
"2" may work, but I didn't try it.
Place your shapes as normal. Place the dimension as usual. Note, it will
not glue to the shapes. Now, select and nudge each shape and they will glue
to the dimension line. At this point you have several options. You can
select the dimension line and drag it and the shapes will follow, drag one
end and the attached shape will follow, if you have the Size and Position
window open, then in the length entry, you can enter a value and the
dimension line will update, change length, and the shapes will shift
appropriately.
With a little more editting, you could control the dimension line by
directly entering a value as a shape property.
Two caveates: 1.) Selecting and moving the shapes will unglue the
dimension line, and 2.) once glued, the shapes will track the dimension line
unless gluing is turned off or the dimension line deleted.
Anyway, this is about as good as can be done without use of macros. I
suspect the other programs you refer to have such coding built in. It is not
a normal Visio feature. Don't know about Visio 2010.
HTH
Wapperdude