Macro composition to take away (file names)

Hi all

I have a problem with a Solidworks macro that has to make a take-home composition. The first tests were done on a part with drawing: no problem, the two files are saved with the same name (located in the part properties).

The problem occurs when I have a family of rooms that controls everything. The macro works, the files save but keep their default names instead of being all three renamed (Piece, Plan and Room Family). I hope my explanation is clear.

Hello

Send us your code and a sample file.