# Wrapping Revit Elements (walls)

**URL:** <https://forum.dynamobim.com/t/wrapping-revit-elements-walls/32779>\
**Category:** Developers\
**Tags:** revit, dynamo, developers\
**Created:** [February 28, 2019, 3:51pm UTC](https://forum.dynamobim.com/t/wrapping-revit-elements-walls/32779 "2019-02-28T15:51:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamed.m.matook](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mohamed.m.matook/32/152057_2.png) [@mohamed.m.matook](https://forum.dynamobim.com/u/mohamed.m.matook)\
**Post date:** [February 28, 2019, 3:51pm UTC](https://forum.dynamobim.com/t/wrapping-revit-elements-walls/32779/1 "2019-02-28T15:51:46Z")

</div>

Hello Guys, I am trying to get walls that has an element at join (walls here) using the ElementsAtJoin property (@Alban_de_Chasteigner advise me to use it). The problem here is that the walls are till unwrapped and I cannot wrap them again. I have tried ToDSType() method but it does not work.

I imported things that I do not think are necessary but I do not know what I am missing here.

 ![a](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/f/ff6cbd00425f68972f40819faf9870e05f396dd8.png) ![b](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d18f6f8d2a2b81310ce5f055f6d69e22f52f061e.png)  
 ![02](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/10378e5a5ef01aa12876487891bde78534604a54.png)

---

<div class="post-metadata">

**Author:** ![Tomasz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tomasz/32/66785_2.png) [@Tomasz](https://forum.dynamobim.com/u/Tomasz)\
**Post date:** [February 28, 2019, 4:16pm UTC](https://forum.dynamobim.com/t/wrapping-revit-elements-walls/32779/2 "2019-02-28T16:16:35Z")

</div>

What’s the error message of Python node?

---

<div class="post-metadata">

**Author:** ![mohamed.m.matook](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mohamed.m.matook/32/152057_2.png) [@mohamed.m.matook](https://forum.dynamobim.com/u/mohamed.m.matook)\
**Post date:** [February 28, 2019, 4:21pm UTC](https://forum.dynamobim.com/t/wrapping-revit-elements-walls/32779/3 "2019-02-28T16:21:08Z")

</div>

‘ElementArray’ object has no attribute ‘ToDSType’

---

<div class="post-metadata">

**Author:** ![Tomasz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tomasz/32/66785_2.png) [@Tomasz](https://forum.dynamobim.com/u/Tomasz)\
**Post date:** [February 28, 2019, 4:29pm UTC](https://forum.dynamobim.com/t/wrapping-revit-elements-walls/32779/4 "2019-02-28T16:29:42Z")

</div>

The dirty method is outputting elements’ Ids instead of just elements and then grabbing them outside the python node. archi-lab Select.ByElementId. might be helpfu with that.

or try:  
`elementsatjoin.append([e.ToDSType(true) for e in elematjoin])`  
on line 47

The problem is that you are calling .ToDSType on list of elements instead of element itself.

---

<div class="post-metadata">

**Author:** ![mohamed.m.matook](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mohamed.m.matook/32/152057_2.png) [@mohamed.m.matook](https://forum.dynamobim.com/u/mohamed.m.matook)\
**Post date:** [February 28, 2019, 4:37pm UTC](https://forum.dynamobim.com/t/wrapping-revit-elements-walls/32779/5 "2019-02-28T16:37:17Z")

</div>

But that does not make sense, I am doing it inside the loop before the item is appended.

---

<div class="post-metadata">

**Author:** ![mohamed.m.matook](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mohamed.m.matook/32/152057_2.png) [@mohamed.m.matook](https://forum.dynamobim.com/u/mohamed.m.matook)\
**Post date:** [February 28, 2019, 4:38pm UTC](https://forum.dynamobim.com/t/wrapping-revit-elements-walls/32779/6 "2019-02-28T16:38:51Z")

</div>

It actually works 😃. Thank you very much … I really appreciate it. I still do not know what you did in that line but it is working
