@box said:
I may be wrong, it often happens, but I think you'll also need to group the dimension with the component or it won't stay with it if you move it.
With Dave's methode, placing the dimension outside the component's context but inside a gluing component, the dimension sticks onto the parent component. It will move along with that single component instance but there will not be any nested components involved.
Example, see attached model.