1.To add a linear dimension click the in the Add→Dimension button group.
2.Now as you move the mouse in the viewport, you will see the start coordinate. Left-click to define the start point of the dimension or press the Enter key and enter the numeric value of the start point.
3.Now as you move the mouse the dimension will be drawn and the end point shown.
4.Left-click to set the end point or press the Enter key and enter the numeric value of the end point.
5.Now as you move the mouse you will see the dimension offset from the start and end points as shown below. Depending on the position of the mouse, the dimension will show the horizontal or vertical distance. Left-click again to finally define the dimension or press the Enter key and enter the numeric value of the offset.
Dimension showing the vertical distance
Dimension showing the horizontal distance