-Set UCS along the area you want to measure (along the rafter to measure the distance between purlins using your example)
-Type out the command 'measuregeom' and hit enter
-Select 'distance'
-Select either end of the purlins to measure the distance between them.
Measurements between the 2 points will show in the dialogue box as an X/Y and Z distance along the set UCS.