Changing lines into objects of same lenght of said lines

Hello All

I have a long and complicated set of lines that create a structure. I want to turn these lines into “tubes” of 40x40x3 mm dimensions. Just like the pipe command, my original lines should be the centerline of the tubes. Any ideas on how I can do this ?