You’ll need Python for this. You can use this:
import clr
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
#The inputs to this node will be stored as a list in the IN variables.
if isinstance(IN[0],list):
element = UnwrapElement(IN[0])
else:
element = [UnwrapElement(IN[0])]
listout = []
for x in element:
ownerid = x.HostElementId
listout.append(doc.GetElement(ownerid))
OUT = listout