Building perimeter outline sketcher...

I'm looking for a simple drawing prog that will create lines of specified lengths to form the outline of two dimensional multisided objects. Eg. to draw a rectangle of dims 6 x 3. Ideally, the prog would be scaleable and would auto rescale if a drawing was becoming bigger than the screen. It would be even better if it was free!