# Wall Layer Reference node not getting the right layer

**URL:** <https://forum.dynamobim.com/t/wall-layer-reference-node-not-getting-the-right-layer/59846>\
**Category:** Packages\
**Tags:** dynamo\
**Created:** [January 28, 2021, 3:59pm UTC](https://forum.dynamobim.com/t/wall-layer-reference-node-not-getting-the-right-layer/59846 "2021-01-28T15:59:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![migueliyus](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@migueliyus](https://forum.dynamobim.com/u/migueliyus)\
**Post date:** [January 28, 2021, 3:59pm UTC](https://forum.dynamobim.com/t/wall-layer-reference-node-not-getting-the-right-layer/59846/1 "2021-01-28T15:59:16Z")

</div>

I am trying to get the Core Centre reference of these walls and somehow it is not getting the right wall reference layer.

 ![revit capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/b/0b194e0d598c105ddaf7bf23caef5ef591d24213.jpeg)  
 ![dynamo capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/22169ce9f8f519f7dc4da29007f66850e39fc03a.jpeg)

I have attached both the revit file and the dynamo file.

Any idea?  
Thank you in advance.[Test core center dimension.dyn](https://forum.dynamobim.com/uploads/short-url/on1JIaySGhiMNFrykvNn74pMuzR.dyn) (21.0 KB) [Dimension Script test 1.rvt](https://forum.dynamobim.com/uploads/short-url/cBBLCxK6zlQUhYG7kQsUKS8LIGC.rvt) (2.8 MB)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [January 28, 2021, 4:14pm UTC](https://forum.dynamobim.com/t/wall-layer-reference-node-not-getting-the-right-layer/59846/2 "2021-01-28T16:14:55Z")

</div>

Hi @migueliyus,

I think this is the same error as in this topic :

> [@Dimensioning from core to core](https://forum.dynamobim.com/t/dimensioning-from-core-to-core/58949/2):
>
> Hi @Cem_Altineller, I can reproduce your issue but I have no clue at the moment because it works fine with other more complex wall types.

I’ve no good explanation at the moment.  
The custom node does not use an API method to find the layers and their references because it does not exist in the API.  
I therefore use an empirical method of parsing the wall references which does not always seem to work.

Use instead the _Element Reference_ node to retrieve the core center :

 ![Test core center dimension V2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/2/c2884b9e31c121bf117c5afdaf8805fd1f2a350a.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a016ef03f45d02f8af9361583fac3afc8028107.png)

---

<div class="post-metadata">

**Author:** ![migueliyus](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@migueliyus](https://forum.dynamobim.com/u/migueliyus)\
**Post date:** [January 28, 2021, 4:23pm UTC](https://forum.dynamobim.com/t/wall-layer-reference-node-not-getting-the-right-layer/59846/3 "2021-01-28T16:23:19Z")

</div>

Thank you for your quick response Alban and thank you for the Genius loci Package, it is very helpfull.
