I am trying to make a node that can be horizontal cylinder with two ellipses on each side(More like a pipe).
How can I make GoCylinder to be horizontal and have ellipse on both ends instead of only one.

Take a look at the AndShape example class in Demo1, or one of the other example shapes there.