RevitFace.FromDynamoSurface null value

It’s for dimensioning walls with a model line as reference, I took it from the explanation of @viktor_kuzev in this post back in 2016: Automatic Dimension Walls