Library features

Is I am using a spline and the length of that spline in a curve Pattern inside my library feature. I ususally place the feature that I am pattering with equal spacing at approximatly 0.375" spacing. What I have to do is get the length of the curve (spline) and then key into my reference for the number of copies (length/0.375). Is there any way that I can get the curve pattern to automatically get the length of the spline and then use the target spacing to calculate the number of copies?

SolidworksParts And Features