Flexible control is provided in building automation. By dividing a floor space into segments, different segments may be assigned to rooms. The operation of the building automation likewise includes room level and segment level control functions and corresponding objects. To assign or reassign a given segment to a room, the segment is linked to the room using an identifier of the corresponding room control function. The building automation equipment and corresponding control for the segment is linked to the room operation. The separation of the room and segment functions may avoid any or extensive manual engineering other than re-assignment. The assignment or reassignment of segments to rooms may be performed online (e.g., at a panel or management station), offline (e.g., at a computer or engineering station), or automatically (e.g., moveable wall system).