Dimensioning beam edge references

I have tried to dimension beam as per the following image. also script is pasted in following image is also pasted. Idk what went wrong but I didn’t get the required dimension even though it shows output as dimension element. @GavinCrump


Hi it got solved when I used some other nodes from Genius loci package. thank you