FromRoom and ToRoom not working if room is inside design option

I am new to this forum. I am not an expert in coding. The issue is with the python code FromRoom[phase] and ToRoom[phase]. Both of these returns null if the corresponding room is placed inside a Design Option. Any solution anyone?

What are you trying to achieve and are you set on python for a specific reason?

I am trying to get the rooms on either side of an opening(door/window). Room.Doors by Clockwork doesn’t seem to work when the rooms and openings are inside design options.