@Shiv Sharma & @bjjeong & @minhnv1
The code is attached. look below the photo. This code was just a sample on how to get things started for you. I don't have the full running code from the screen capture anymore. play with some of the values to see what they do.
To get the dimensions on the outside, realize that the walls are rotated from a horizontal plane. The bottom wall is 0 degree rotation, the top is 180 degree rotation. The dimensions are added below the line, and rotated with it.