Create a wall by multiple groups

Hi guys, I want to create a new wall,

I would like to select multiple which have each of them different levels and different height…

I will get the levels + offsets from each walls, and the height from each walls… but then how to make sure that the groups associate the correct data to the correct wall?

thanks for your help,