Curve which keeps constant length ?

 From:  TOM (SIRTOM)
8414.1 
Hi,

Imagine you have a straight line with the length X.

Now you want to transform this line into a curve of whatever shape by
pulling its points but the overall length should always remain X.

Is there a way to achieve that ?

EDITED: 7 May 2017 by SIRTOM