# What command to display average length of selected curves?

Hi,
V5
Is there a command to display average length of selected curves ?

I have a photo , side view, of bolts on a circular plate and projecting them as centre lines to a circle of that plate’s diameter, run split command to get circle segments between the bolts, I wish to see the average segment length to establish how many bolts on the plate, spacing etc.

I can then judge how many bolts on the plate there are.

Steve

Well, you can do a bit of math yourself - select the curves, Rhino tells you how many are selected, note that number - then call Length and get the total length of all curves. Then use a calculator (like the one in Rhino) to get the average (total length/number of curves).

I can cook up a script to do that if you really need.

Hi,
V5
Thinking about it I would need in fact median or whatever the term is, as if there are a few shorter segments they could mess up the normal spacing (aka curve lengths), so thinking back to school days and the deviation graph etc, is there a way of establishing the commonest curve lengths ?

Steve

Dunno, removing outliers etc. is a lot more sophisticated than what I imagined.

You could also take the two intersections nearest the equator of your circle and use angle to measure the angle between them about the centre of the circle. Divide 360 by the result to get the count. (Take care of inaccuracies by rounding to the nearest integer.)

Polar array a set of bolts using the value and compare the side view with the photo as a sanity check

Jeremy