Place model groups to spaces

I don’t know if we are talking about the same thing here, This is what I would like to do. if I create a group of the sanitary pipes for a typical hotel room, and then I assign that group to all the spaces named xx in the model. Would that be possible with a Dynamo script?

I don’t know if i understand your question, but I think yes. Can you attempt something for us to see? This thread may be a good start your quest if you don’t know where to begin.