# Elevation marker location (XYZ)

**URL:** <https://forum.dynamobim.com/t/elevation-marker-location-xyz/7106>\
**Category:** Developers\
**Tags:** revit, python\
**Created:** [October 27, 2016, 9:28am UTC](https://forum.dynamobim.com/t/elevation-marker-location-xyz/7106 "2016-10-27T09:28:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alisder\_Brown](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alisder_brown/32/14995_2.png) [@Alisder\_Brown](https://forum.dynamobim.com/u/Alisder_Brown)\
**Post date:** [October 27, 2016, 9:28am UTC](https://forum.dynamobim.com/t/elevation-marker-location-xyz/7106/1 "2016-10-27T09:28:08Z")

</div>

Hey all  
So, this is part of a much bigger graph.  
I have a graph that will generate a single elevation marker inside a room with 4 elevation views turned on, this section works well.  
I am now trying to have the elevations named depending what room they are in. After reading this post: [Python - Getting XYZ from Location](https://forum.dynamobim.com/t/python-getting-xyz-from-location/4892)  
thenks to @Dimitar_Venkov i was able to get the xyz of a single elevation marker, which i expanded to get a list, but it is not working as expected 100% of the time.  
I am trying to have it collect all the elevation markers, and report back their XYZ coordinates, and then find out if the points are within the room boundary. Once i have this i will be able to figure out the rest.  
See attached Dynamo file as my work in progress and a test Revit file to use.  
I think it may be to do with the “GetViewId()” section, as i can only seem to input a single view index, but all my markers have 4 views (index 0…3) so am unsure how to process this.  
I’m newish to python so the node may not be perfect, so be gentle 😛

Thanks in advance for any help  
[Get elevation location.dyn](https://forum.dynamobim.com/uploads/short-url/oy8urYh2UmcjcRQlhzVhGhkpLcD.dyn) (8.2 KB)  
[Test Room elevations.rvt](https://forum.dynamobim.com/uploads/short-url/yID21jXiGn0Ret6ydawE3HU62KK.rvt) (1.1 MB)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 29, 2016, 2:06pm UTC](https://forum.dynamobim.com/t/elevation-marker-location-xyz/7106/3 "2016-10-29T14:06:50Z")

</div>

Hi @Alisder_Brown,

Here is another possible way using custom node “BoundingBoxByElements” from Clockwork package to get locations of elevation markers.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/4/432d3affd8c767b1b273499c96bd56fedd122d63.PNG)  
 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/d/da724c4dbc79438f3a7a10d5e161762ec1b03917.png)

---

<div class="post-metadata">

**Author:** ![Alisder\_Brown](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alisder_brown/32/14995_2.png) [@Alisder\_Brown](https://forum.dynamobim.com/u/Alisder_Brown)\
**Post date:** [October 31, 2016, 12:16am UTC](https://forum.dynamobim.com/t/elevation-marker-location-xyz/7106/4 "2016-10-31T00:16:37Z")

</div>

Thanks a lot @Kulkul

I will have a look at using something like this into my Graph when im back in the office on Wed.

🙂

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [April 3, 2017, 9:59am UTC](https://forum.dynamobim.com/t/elevation-marker-location-xyz/7106/5 "2017-04-03T09:59:02Z")

</div>

A post was split to a new topic: [Create Elevation by Rooms](https://forum.dynamobim.com/t/create-elevation-by-rooms/10769)
