Hi,
Thanks for the extra info.
It looks like you would like to to scale an existing model of a complete building to fit non-rectangular spline. Unfortunately this wont work as it is, you'll need to to break the building into smaller parts that can be used to reconstruct it to match any shape. As a minimum this is likely to be one segment for the walls and another roof, but it could be much more sophisticated that than if the project requires it. Attached is a simple file that randomizes a different building per spline between with different wall types synced with 3 different roof types.
It should be pretty self explanatory, but the main thing to note is the Randomize node which has been set to Generate On -> X Spline Start to ensure that the same segment is used for each closed spline. In the sample file I had also enabled Sync Between -> Generators to illustrate that you can match different roofs to walls if that is required. If you have any questions about this file, please don't hesitate to let me know.
All the best,
Paul