Hi Muhannad, welcome to the forum ![]()
Please take the time to review How to get help on the Dynamo forums
How often do expect to place stairs in this situation? It seems a highly specific use case for automation. If its a one off just use a dimension from the centreline of the stairs to the junctions on either side and set the equal constraint.