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