# Element.GetLocation operation failed

**URL:** <https://forum.dynamobim.com/t/element-getlocation-operation-failed/94685>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [October 18, 2023, 1:22pm UTC](https://forum.dynamobim.com/t/element-getlocation-operation-failed/94685 "2023-10-18T13:22:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ame9931](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@ame9931](https://forum.dynamobim.com/u/ame9931)\
**Post date:** [October 18, 2023, 1:22pm UTC](https://forum.dynamobim.com/t/element-getlocation-operation-failed/94685/1 "2023-10-18T13:22:53Z")

</div>

does anyone know how to resolve this error?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/1/511f100e61f8bf65bbd59c4f66e3ea1d37d8827d.jpeg)  
I’m trying to get the coordinate of a curtain panel and I don’t know how to resolve, maybe working on the family?

thanks all

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 18, 2023, 1:54pm UTC](https://forum.dynamobim.com/t/element-getlocation-operation-failed/94685/2 "2023-10-18T13:54:08Z")

</div>

What are the nodes returning? Are all instances failing or just a few? Is it a curve-based family? We need more information.

---

<div class="post-metadata">

**Author:** ![ame9931](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@ame9931](https://forum.dynamobim.com/u/ame9931)\
**Post date:** [October 18, 2023, 2:03pm UTC](https://forum.dynamobim.com/t/element-getlocation-operation-failed/94685/3 "2023-10-18T14:03:54Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9bf60eef51a66fd44592155f649bdc6912ab0db9.png)  
This is the return of the nodes all the instances gave “null” as results.  
As you can see in the left part of the screen is a simple curtain wall that I’m using as sample for find the error, because my real model is very big and heavy to run, so I’m using to be more fast.  
In the final model it will be a circle curtain wall

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 18, 2023, 2:40pm UTC](https://forum.dynamobim.com/t/element-getlocation-operation-failed/94685/4 "2023-10-18T14:40:50Z")

</div>

It works for me with the default types. Can you try a different family?

EDIT: You can also see if either of these methods works.

```auto
import clr
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.AddReference('RevitAPI')

mullions = UnwrapElement(IN[0])
points = []
curves = []
for mullion in mullions:
    point = mullion.Location.Point
    points.append(point.ToPoint())
    curve = mullion.LocationCurve
    curves.append(curve.Origin.ToPoint())
    
OUT = points, curves

```

---

<div class="post-metadata">

**Author:** ![ame9931](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@ame9931](https://forum.dynamobim.com/u/ame9931)\
**Post date:** [October 18, 2023, 3:10pm UTC](https://forum.dynamobim.com/t/element-getlocation-operation-failed/94685/5 "2023-10-18T15:10:42Z")

</div>

Even use default type of glazed family same result

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/e/fe2d45749b9eba04c8240b1bcea75f8adf4aab0d.png)  
How can I use che part that you put in the edit?

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 18, 2023, 3:14pm UTC](https://forum.dynamobim.com/t/element-getlocation-operation-failed/94685/6 "2023-10-18T15:14:21Z")

</div>

That’s python. Just paste that into a python node with nothing else and pass it your list of mullions.

EDIT: I know see that you’re looking for the _panel_ location, not the mullions. I misread your initial request. I don’t think panels have locations, they’re the result of the curtain wall being separated by the grid. They do have geometry though, so you may have to get the “location” by working with the geometry of each panel.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 18, 2023, 3:44pm UTC](https://forum.dynamobim.com/t/element-getlocation-operation-failed/94685/7 "2023-10-18T15:44:58Z")

</div>

Curtain panels don’t have a location. Pull the geometry instead, or pull the curtain grids and find the intersection of adjoining grids.

---

<div class="post-metadata">

**Author:** ![ame9931](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@ame9931](https://forum.dynamobim.com/u/ame9931)\
**Post date:** [October 19, 2023, 8:20am UTC](https://forum.dynamobim.com/t/element-getlocation-operation-failed/94685/8 "2023-10-19T08:20:50Z")

</div>

Thank, I replace the panel with some family of generic model put in position with an array and now it workd
