Here’s my first try. I used the EdgePosition attribute to position the copies of the cylinder on the edges of a cube. Notice how the cylinder is aligned along the Y axis of the EdgeReferenceFrame.
If I rotate the cylinder center by 90 degrees in Z, I get this:
Finally, I can use the EdgeLength to scale the cylinder copies: