Use "Navmesh and Pathfinding" do a RTS

I have learned how to use “Navmesh and Pathfinding”. But there is a problem with it.
I want a function, like Starcraft 2, when a building built, navigation can automatically bypass the generation of dynamic in-game barrier.
who know how to do it?

no one know it?