You can not copy and paste the value of a dimensioning line.
But you can select a line and mark, copy and paste the indicated 'selected total length'.
If it's a polyline of several elements you will have to measure with the measuring tool ( for instance 'point to point' with snap to endpoints on ) and mark, copy and paste from the command line.