Aligning a link by common element

Hello,

I have two identical ‘origin’ families. One is in a main model. The second is in a linked model. What I would like to do is align the linked model to the ‘main’ model by use of the origin family.

As I try to work through this script, I’m using ‘element.location+’ to get the location of the linked element, but I think it’s feeding me the location of the element relevative the link model, not relative to the main model.

I think that if I can get the location of the linked element, I can move the entire linked model to the correct position.

Thanks!