# Getting XYZ, would like point in Dynamo

**URL:** <https://forum.dynamobim.com/t/getting-xyz-would-like-point-in-dynamo/27665>\
**Category:** Revit\
**Tags:** python\
**Created:** [October 25, 2018, 11:14pm UTC](https://forum.dynamobim.com/t/getting-xyz-would-like-point-in-dynamo/27665 "2018-10-25T23:14:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjorn\_Keulemans1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bjorn_keulemans1/32/54676_2.png) [@Bjorn\_Keulemans1](https://forum.dynamobim.com/u/Bjorn_Keulemans1)\
**Post date:** [October 25, 2018, 11:14pm UTC](https://forum.dynamobim.com/t/getting-xyz-would-like-point-in-dynamo/27665/1 "2018-10-25T23:14:32Z")

</div>

I’m trying to get the 2 points from the Room Calculation Points for my Doors, most Nodes that do something with this are returning the Room at that point, I would like the Point itself.

I’ve found the GetSpatialElementFromToCalculationPoint() method to query the Door element for those, the result is as follows so far:

 ![2018-10-26_0046](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/c/5c6b2dc3417e9498295acbd8ddff7d7171f01fda.png)

Been trying to get Points from those XYZ values, but it’s giving me Revit.DB.Point elements or the ToDSType(False) method does not get recognized.

Can someone point me in the right direction?

---

<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 25, 2018, 11:44pm UTC](https://forum.dynamobim.com/t/getting-xyz-would-like-point-in-dynamo/27665/2 "2018-10-25T23:44:48Z")

</div>

Why not use a bit of standard string parsing and number conversion with OOTB Dynamo nodes and then create the point?

---

<div class="post-metadata">

**Author:** ![jean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jean/32/188752_2.png) [@jean](https://forum.dynamobim.com/u/jean)\
**Post date:** [October 26, 2018, 12:03am UTC](https://forum.dynamobim.com/t/getting-xyz-would-like-point-in-dynamo/27665/3 "2018-10-26T00:03:52Z")

</div>

@Bjorn_Keulemans1, you want to convert Revit type to Dynamo type so, you need to import “GeometryConversion”

> clr.AddReference(‘RevitNodes’)  
> import Revit  
> clr.ImportExtensions(Revit.GeometryConversion)

add these references and it should be fine.

---

<div class="post-metadata">

**Author:** ![Bjorn\_Keulemans1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bjorn_keulemans1/32/54676_2.png) [@Bjorn\_Keulemans1](https://forum.dynamobim.com/u/Bjorn_Keulemans1)\
**Post date:** [October 26, 2018, 7:22am UTC](https://forum.dynamobim.com/t/getting-xyz-would-like-point-in-dynamo/27665/4 "2018-10-26T07:22:53Z")

</div>

That was my backup idea, I’ve struggled with the Revit/Python ownership of elements before and wanted to see if I could get a more solid grasp on the concept, while making this Node and solving a question that came across my desk.

---

<div class="post-metadata">

**Author:** ![Bjorn\_Keulemans1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bjorn_keulemans1/32/54676_2.png) [@Bjorn\_Keulemans1](https://forum.dynamobim.com/u/Bjorn_Keulemans1)\
**Post date:** [October 26, 2018, 7:25am UTC](https://forum.dynamobim.com/t/getting-xyz-would-like-point-in-dynamo/27665/5 "2018-10-26T07:25:37Z")

</div>

I’ve tried that a little after making the first post here, and unfortunately it didn’t seem to work.

I’ve left it here for today, might pick it up later this weekend.

I’ve got my points, but not as Dynamo elements, and there’s a logic flaw somewhere, because I’m making 6 points from 2 sets of 2 XYZ values.

 ![v2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b3da3f8ad639d150d4c6c1cf72a9693bb6828fb.png)

---

<div class="post-metadata">

**Author:** ![jean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jean/32/188752_2.png) [@jean](https://forum.dynamobim.com/u/jean)\
**Post date:** [October 26, 2018, 7:44am UTC](https://forum.dynamobim.com/t/getting-xyz-would-like-point-in-dynamo/27665/6 "2018-10-26T07:44:28Z")

</div>

@Bjorn_Keulemans1, of course, you need **ToPoint** method for type conversion.

According to your code, it should be like this;

> z.append(p.ToPoint())

- p is your XYZ point (Revit Type)
- p.ToPoint() (Dynamo Type which is what you want)

---

<div class="post-metadata">

**Author:** ![Bjorn\_Keulemans1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bjorn_keulemans1/32/54676_2.png) [@Bjorn\_Keulemans1](https://forum.dynamobim.com/u/Bjorn_Keulemans1)\
**Post date:** [October 26, 2018, 7:47am UTC](https://forum.dynamobim.com/t/getting-xyz-would-like-point-in-dynamo/27665/7 "2018-10-26T07:47:22Z")

</div>

Thanks a lot, I’m getting Point in Dynamo indeed.

Job for this weekend is now to look at my looping and solve the 4 becomes 6 issue.

Thanks.

 ![v3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/e/ae32b88307e394bdcca2962cd1f8db310df830f7.png)

---

<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:** [January 9, 2021, 10:11am UTC](https://forum.dynamobim.com/t/getting-xyz-would-like-point-in-dynamo/27665/8 "2021-01-09T10:11:15Z")

</div>

Split this topic on January 9, 2021, 10:11am UTC

A post was split to a new topic: [Door CalculationPoints missing in Revit 2021](https://forum.dynamobim.com/t/door-calculationpoints-missing-in-revit-2021/59110)
