This example will surely help you to learn how to design a piece of the steel pipe.
New File: Create a new file with any size as you want.
Draw a Pipe: Choose "E52247" color and Rectangle tool (U key) to make a rectangle shape as I have done here.
Effects: Go to Layer Menu > Layer Style > Stroke, Gradient Overlay, Inner Shadow and use same settings.
You will get it.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.