DimensionReferences from Revit links

Hello everyone,
I did create a dimension between the elements which are inside the Revit links. For example, Walls are in the ARC Revit link and Ducts are in the MEP Revit link.

Now, in order to check if the element already has a dimension for the elements (prior to the creation of new dimensions), I did use the node “Dimension.ReferencedElements” which works perfectly when elements are not in the Revit link. Now as a result I only have information that the elements (which have a dimension) are inside the Revit link but I do not have an ID of the actual element.

Any help is highly appreciated.