Drawing centerlines on stl file

Hello, is there a way to draw centerlines on stl files as shown by this image?

My goal is to find the length of the centerline, I've attached the stl file in question. Thank you.

SolidworksGeneral