Measures is a quite handy tool to draw rulers, gauges, scales etc. You can choose between different units such as: mm, in, pt and %. The nice thing about the script is that you can turn ANY path object – open or closed – into a ruler. Just have the desired path selected when you hit the Make Ruler-button.
Even the lengths of the scale stops are customizable.