What are the pieces you are trying to put together? Keep in mind that building pieces are divided between on-grid pieces and off-grid pieces. Every time you place a new on-grid piece outside of a group, it creates a new building, and you can't merge two buildings into one group. The best you can do in this case it merge them as a blueprint, but even then when you place them they will still be separate groups per building.