Create path between two points

Is your issue like the travelling sales man problem. You can define a given path from a room to any adjoining room, then given you are in room A and want to get to a room B somewhere in the house then what is the path from A to B?

If so the PG in this post

does something like that. The route is shown with blue spheres.

The full thread also talks about navigation mesh which may also be useful for you.