Such a macro is created through menu Macros - New macro - Automatic trace through variable.
When activated, this macro moves the linked point to the position of another point linked to the same object.