Identify Load baring Materials in Wall Assembly

I am trying to identify what parts of the Wall are Load bearing. I am trying to have the box highlighted in this screen shot to be checked when the part of the wall (specific material) is load bearing.

I need to somehow get the script to reach this window in the wall type materials shown in the screenshot.

I have reached a point where the script has separated the elements. Any advice on how to proceed?


Look at “Wall CompoundStructureLayersLocation” by Genius Loci and see if that will help you.

image

image

this is a good start. Thank you!