How do we place railings along the opening?

I am a Dynamo Beginner.
I have a question.
How do we place railings along the opening?
Maybe we can get the bottom line of the opening and along it o place element.
Thanks~

see