Import relationship between existing columns using macro


I am trying to find a solution using macro to import\create relationship between two existing column in different entities.

Default macro's only allows to establish the relationship at entity level, but there is no option to provide the parent and child attributes of that relationship