Morning fixo, after rereading your code it is starting to make sense. However, after starting with RML and entering the FloorNumber i have picked the 'rectangle' as required and now get the 'wait' alert.................after 10mins nothing has happened. This is what i am doing, I have tried drawing the rectangle and enclosing the whole of the floor plan and the room polylines, i have tried drawing the rectangle for each individual room but when i press enter after picking the rectangle the alert 'Wait' pops up - doesn't seem to want to go past this point or am i too impatient.

JS