an AutoLISP routine that calculates the length of straight stock required for a section of bent metal.