Click Review tab > Measure panel > Measure drop-down.
Click a Measure tool.
Press X, Y, or Z, depending which axis you want to lock to.
Or, on the Measure panel > Lock drop-down, choose from:
Move your cursor over the model in the Scene View and use the surface snap to select a surface.
Click the start point of the distance to be measured in the Scene View.
The measure line turns red to indicate it is locked to the axis.
Click the end point of the distance to be measured in the Scene View.
The optional dimension label displays the measured distance.
Command entry: Press X, Y, or Z when using a Measure tool.