Create referenceplanes at core boundrys of a wall

Hi, Im trying to create a script that creates referenceplanes at the core boundrys of walls in active wiev.
I’ve tried with the Genius Loci package but it returns “Autodesk.Revit.DB.Reference” instead of a surface or a face. I don’t know how to convert the Autodesk.Revit.DB.Reference into a line.

Kontroll core boundry.dyn (14.2 KB)

Hi @CHRISTOFFER.EK,

use instead the Wall CompoundStructureLayersLocation node to obtain a location line.

2 Likes

Thank you.
Wall referensplan structure-lager.dyn (32.9 KB)

Now I get the center of the outer structural layers. Is there a way to get the outer edges of eatch layer instead of the center?