Hello everyone, sorry for the delay in replying,
I have now been able to solve the problem.
I use the node ‘list.cartesianProduct’
to sort the lists according to an xReference.
I was then able to continue after I had the correct associated rooms.
Now rooms are read from the linked model also their position (pythonscript) and opened model is created if the rooms are missing which are present in the linked model at the same position.
What I might want to replace is the python script, are there standard nodes (no attachments) to read the rooms with the position from a linked model?
Problem is python is version dependent and many things can change.
In addition, the company that works with the script is also very limited in terms of plugins, addons, etc…