Dimension Wall Structure Layers

Hi All

I am trying to create a dimension automation script that dimensions the structural layers of walls, as shown in the image below.
I am using the wall edges references and the wall layer references nodes from the Genius Loci package to extract the wall references. Still, I am trying to see if there is a way or python method to extract the structural layers’ references.
Thanks for your help.

@Alban_de_Chasteigner