Macro to measure Chain of curves or edges?

Hi all.

I do try to create a macro to measure the length of continuous segments of curves or edges but seems that I can’t find the right syntax.

My macro looks like this:

NoEcho ! _SelChain _Length _SelNone

and this is the result of the macro:
Select curves to measure ( Units=Model_Units SubCurve )
Select curves to measure. Press Enter when done ( Units=Model_Units SubCurve )
Length = 258.08
Select curves to measure. Press Enter when done ( Units=Model_Units SubCurve ): 258.08
Unknown command: 258.08
Select curve in chain ( ChainContinuity=Tangency Direction=Both GapTolerance=0.01 AngleTolerance=0.01 )
Command:

I do tried a few variations without great success.

How I can get only the “Length = 258.08“ without the complicated repeat function after?

Chain_Edges_Length.3dm (84.8 KB)

Hi Cumberland -

Either of these should work:

SelChain Pause Enter Length

Length SelChain Pause EnterEnd

-wim