Drawn pattern along a spline

I want to create a pattern of evenly spaced circles along a spline. The circles will then be extruded to create a pattern of parallel rods following the shape of the spline.

Any ideas other than manually drawing each circle with its centre at a point on the spline?