Disagree not a problem heaps of solutions out there for length of objects, Lisp, dataextraction, VBA, .NET.
"export cut length and number of pierces from dxf file to excel file please" Just google will get more than enough responses.
Just find one that is close, various objects can have a length, a circle a circumference and so on.
If its primitives it will be easy, Line,arc,circle,pline and so on. The only issue I see is blocks and hatches in your dxf.Hatches what do you do ?
Make a list with two values (("circle" 28)("pline" 54)………… sort the list and can total by object type and so on.
I have stuff written in VBA like 10 years ago that totals lengths.