@KarelG ok, but if the question is, "How to get from A to B?" and the answer to that question includes figuring out if the elevator needs to be used, it can wait..
I don't know the interface you're using, but if I had to make that interface, I would make it so that a hallway snaps to an existing room or a room snaps to an existing hallway
in such a way as to introduce a door where they meet