Auto routing

Hello, i am exploring the idea of running a script to auto run wiring and piping in a 3d rhino model. Other than simplifying the problem down to connecting 2 points that must be connected through a solid (walls), are there other solutions to this problem?

Thanks