It creates the Room Name and Space Name project parameters for the family instances of the category you want.

Select the category you want to create the project parameter from the panel.
Press the Room Name or Space Name button.
If the parameter has been created, you can get Room and Space Name from the Proporties menu.
If there is an architectural link, you need to select this link to get a room name.