Place a polyline over a slab/roof/mesh/stair(archistair one of course)
(The polyline vertex is the place where the railing can change its elevation.)
Select the poly and the slab/roof/mesh/stair - and click on create railing button.
That's all.
Best Regards,
Piotr