Changing an attribute in all blocks which reference point is within a given polygon.

Dear community,

I have frequently the task to assign a room number or a location code attribute to all blocks in a given area.

I wonder if we have an automatic solution for this?

Thank you