Dynamo, Automatic dimension of all wall elements

In 2022 there is a WallDimension node. Use this to dimension to the faces of each selected wall and place the dimension at a pre-selected placement line. A quick example.

I would highly recommend researching as much as possible using the Genius-Loci package as @Marcel_Rijsmus mentions. Understanding how the tool works with references, you can create some pretty cool auto-dimensioning scripts.