Room Tags From Linked Model

Hi All,
Trying to Automate workflow of Room Tagging in our MEP models from linked Arch Model.
Working on this script for quite sometime and this is where I’m upto and need help to finish it off .
After running script getting blue dots in MEP model. Gone through various threads in our forum but still couldn’t get this worked. Appreciate your help .
Room Tags.pdf (200.2 KB)