Re-attach dangling dimensions

Is there a way to automatically re-attach dangling dimensions ? Parts are exactly the same. Surly there is a better way than going through and re-attaching individually?