To lock to the Z axis when measuring
Measure panel
Measure drop-down.
drop-down
Z axis
.
to select a surface. The measure line turns blue to indicate it is locked to the Z axis.
The optional dimension label displays the measured distance.
Command entry: Press Z when using a Measure tool.