Reposition all linked elements to Project Base point

Hey All,

I am looking for a way to reset all linked elements to their base position in the project. This is a feature built into Revit but you can only do it one set of elements at a time. I have tried to do this in Dynamo but I am having difficulty selecting the elements and resetting them to their base point. Is this even possible through Dynamo? I can’t get any version of an add-in I make to do anything. The below add-in is what I have so far but it is just a rough draft and I am obviously missing something because I am having trouble getting it to select elements an move them to the base point. Any feedback would be greatly appreciated. Thank you!