For me the front end. Can be used for circles also ignore say width.

(if (not AH:getvalsm)(load "Multi Getvals.lsp"))
(setq ans (AH:getvalsm (list "Enter values " "Height " 5 4 "100" "Width " 5 4 "100" "Thickness" 5 4 "2.5" )))
Just a comment, when you talk about walking along a path, there is no mention about if path is in 3D, if a say line has 3d points like 0,0,0 and 10,10,10 then its on a 3D angle so you need to rotate the two rectangs to be square to the path before doing the extrude. Basically there are two hollow tubes, square or rectangular only sqaure is mentioned. Need a UCS command maybe if not creating in just a plan view. If you just want a length of say a line then can use that as extrude height no path needed.
Also which point are you using on the rectang as the control point for the rectang ? A corner or say the midpoint of the rectang edge. This could be a choice.
Perhaps some more information or a sample dwg of what is required.
There is some good make steel shapes lisp out there with lots of world wide library shapes, eg "Wiseys steel shapes.lsp" do a google.

Ps no code all done manually, but could be a lisp.