A model based approach to the automatic generation of block division plans