polyline

Hi,
how can I draw a polyline, one segment after another, having a length that I have decided, as in acad?

Thanks

tux