# Pile coordinates

**URL:** <https://forum.dynamobim.com/t/pile-coordinates/68638>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [September 28, 2021, 5:42am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638 "2021-09-28T05:42:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajkumar.kolli93](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rajkumar.kolli93/32/103187_2.png) [@rajkumar.kolli93](https://forum.dynamobim.com/u/rajkumar.kolli93)\
**Post date:** [September 28, 2021, 5:42am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/1 "2021-09-28T05:42:09Z")

</div>

Dear All,  
I have a code for extracting coordinates from Piles in Revit. I have a problem with this code. the problem is it’s extracting wrong coordinates.  
Here I’m converting coordinates from origin to project basepoint. you can understand the method if you observe my map.  
I attached snaps for your Reference.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/d/9d150d8ecf99a685759293125845b1efd0c454ce.png)

 ![Pile Coordinates_2021-09-28_11-04-44](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/9/8962d653fd6be2746bd6d2502b8509ed33db1bef.png)

---

<div class="post-metadata">

**Author:** ![honeyjain619](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/honeyjain619/32/121215_2.png) [@honeyjain619](https://forum.dynamobim.com/u/honeyjain619)\
**Post date:** [September 28, 2021, 5:47am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/2 "2021-09-28T05:47:35Z")

</div>

Hello @rajkumar.kolli93

Can you Please share the sample revit file and .dyn file. other wise i need to create the script from scratch.

---

<div class="post-metadata">

**Author:** ![rajkumar.kolli93](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rajkumar.kolli93/32/103187_2.png) [@rajkumar.kolli93](https://forum.dynamobim.com/u/rajkumar.kolli93)\
**Post date:** [September 28, 2021, 5:53am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/3 "2021-09-28T05:53:20Z")

</div>

Sorry @honeyjain619, That is a company project file I can’t share here.

---

<div class="post-metadata">

**Author:** ![honeyjain619](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/honeyjain619/32/121215_2.png) [@honeyjain619](https://forum.dynamobim.com/u/honeyjain619)\
**Post date:** [September 28, 2021, 6:02am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/4 "2021-09-28T06:02:26Z")

</div>

I am not asking the complete original .rvt file you can copy 4-5 piles in a blank file, and run the same script in the sample file and share the sample file.  
I’ll try to solve your problem in sample file. if you are getting the satisfactory result in sample file and you can run the script in main/ original file.

---

<div class="post-metadata">

**Author:** ![rajkumar.kolli93](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rajkumar.kolli93/32/103187_2.png) [@rajkumar.kolli93](https://forum.dynamobim.com/u/rajkumar.kolli93)\
**Post date:** [September 28, 2021, 6:14am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/5 "2021-09-28T06:14:04Z")

</div>

Okay I ll share rvt file…

---

<div class="post-metadata">

**Author:** ![MEPnode](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@MEPnode](https://forum.dynamobim.com/u/MEPnode)\
**Post date:** [September 28, 2021, 6:17am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/6 "2021-09-28T06:17:00Z")

</div>

Hi I create a couple that added the x y coordinates to a parameter.  
See if these are any use for you.

> **[DYNAMO | ADD COORDINATES TO PARAMETER FOR SCHEDULING](https://www.mepnode.com/post/dynamo-add-coordinates-to-parameter-for-scheduling)**
>
> If you need to schedule out element coordinates in Revit this one is for you. The script below will add northing and easting coordinates to a parameter of your choosing to all elements within a category. See Video below. If you are unable to load...

> **[DYNAMO | ADD COORDINATES TO PARAMETER OF SELECTED ELEMENTS FOR SCHEDULING](https://www.mepnode.com/post/dynamo-add-coordinates-to-parameter-of-selected-elements-for-scheduling)**
>
> If you need to schedule out element coordinates in Revit this one is for you. The script below will add northing and easting coordinates to a parameter of your choosing to all elements you select within your model. See Video below. If you are unable...

---

<div class="post-metadata">

**Author:** ![oskarluisdiaz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/oskarluisdiaz/32/136437_2.png) [@oskarluisdiaz](https://forum.dynamobim.com/u/oskarluisdiaz)\
**Post date:** [April 13, 2022, 4:13pm UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/7 "2022-04-13T16:13:17Z")

</div>

Hello, I needed to find a solution for a similar development, and I realized that the following was wrong. Thanks for sharing. Try it like this

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/9/29c4cace77432cb5d9f4fae5da6413c06c48573f.png)

---

<div class="post-metadata">

**Author:** ![sascari](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@sascari](https://forum.dynamobim.com/u/sascari)\
**Post date:** [September 20, 2022, 9:56am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/8 "2022-09-20T09:56:47Z")

</div>

> [@rajkumar.kolli93](#):
>
> coordinates

I’m having the same problem. Did you ever find a solution?

---

<div class="post-metadata">

**Author:** ![newshunhk](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@newshunhk](https://forum.dynamobim.com/u/newshunhk)\
**Post date:** [September 20, 2022, 10:11am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/9 "2022-09-20T10:11:01Z")

</div>

you can try this node from geniusloci:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/4/d4f8d279066348a82428fa3f005343b0c2e2fa7a.png)

---

<div class="post-metadata">

**Author:** ![sascari](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@sascari](https://forum.dynamobim.com/u/sascari)\
**Post date:** [September 20, 2022, 10:13am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/10 "2022-09-20T10:13:56Z")

</div>

@newshunhk is this a screenshot of a custom node? What am I supposed to do with it…Where is the node… NVM this is a package that needs to be added. In the future some clarity would be helpful. Thanks.

---

<div class="post-metadata">

**Author:** ![newshunhk](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@newshunhk](https://forum.dynamobim.com/u/newshunhk)\
**Post date:** [September 20, 2022, 11:56am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/11 "2022-09-20T11:56:30Z")

</div>

it is from genius loci 🙂

---

<div class="post-metadata">

**Author:** ![rajkumar.kolli93](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rajkumar.kolli93/32/103187_2.png) [@rajkumar.kolli93](https://forum.dynamobim.com/u/rajkumar.kolli93)\
**Post date:** [September 20, 2022, 1:06pm UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/12 "2022-09-20T13:06:44Z")

</div>

ya! Thankyou @newshunhk , It’s working…

---

<div class="post-metadata">

**Author:** ![jersg](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jersg](https://forum.dynamobim.com/u/jersg)\
**Post date:** [December 24, 2024, 3:12am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/13 "2024-12-24T03:12:05Z")

</div>

Hi, @rajkumar.kolli93 i have the same issue where the coordinate shows different from the dynamo output. the node from geniusloci doesnt work for me, could you advise?

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [December 24, 2024, 3:18am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/14 "2024-12-24T03:18:36Z")

</div>

Hi @jersg ,

genius loci doesn’t work for you? did show errors? It may be try to install the iron python package from the Package manager.

---

<div class="post-metadata">

**Author:** ![rajkumar.kolli93](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rajkumar.kolli93/32/103187_2.png) [@rajkumar.kolli93](https://forum.dynamobim.com/u/rajkumar.kolli93)\
**Post date:** [December 24, 2024, 3:31am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/15 "2024-12-24T03:31:40Z")

</div>

Hi @jersg can you share your output.

---

<div class="post-metadata">

**Author:** ![jersg](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jersg](https://forum.dynamobim.com/u/jersg)\
**Post date:** [December 24, 2024, 3:37am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/16 "2024-12-24T03:37:02Z")

</div>

Thanks @_Vijay for the reply. i had the iron python installed.  
@rajkumar.kolli93 below is part of the output. the annotate coordinate is different from the dynamo run’s result that i scheduled in

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/5/7514fdd3c12387eece1c9abaa38dd0327e527eb4.png)

---

<div class="post-metadata">

**Author:** ![jersg](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jersg](https://forum.dynamobim.com/u/jersg)\
**Post date:** [December 24, 2024, 3:47am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/17 "2024-12-24T03:47:07Z")

</div>

![Dyn1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/0/509cc338b2b5ca7a0066b4c7e4eaad6ef471157c.jpeg)

---

<div class="post-metadata">

**Author:** ![jersg](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jersg](https://forum.dynamobim.com/u/jersg)\
**Post date:** [December 24, 2024, 3:47am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/18 "2024-12-24T03:47:38Z")

</div>

![Dyn2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/2/02d8db07809eff3b85abdb3d9abe9e022dcb5d98.jpeg)

---

<div class="post-metadata">

**Author:** ![rajkumar.kolli93](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rajkumar.kolli93/32/103187_2.png) [@rajkumar.kolli93](https://forum.dynamobim.com/u/rajkumar.kolli93)\
**Post date:** [December 24, 2024, 4:24am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/19 "2024-12-24T04:24:09Z")

</div>

hi @jersg , did you tried with geniusloci node.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/f/cf37fc4044cebb8130cb2543ffd71ce0ac5e6579.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/9/29faf65acbd0b0cab2efb60d742409cff6df9716.jpeg)

---

<div class="post-metadata">

**Author:** ![jersg](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jersg](https://forum.dynamobim.com/u/jersg)\
**Post date:** [December 24, 2024, 4:33am UTC](https://forum.dynamobim.com/t/pile-coordinates/68638/20 "2024-12-24T04:33:30Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/9/994fe819fd601e4fa59d5132032d0aa1c072f2f0.png)  
doenst work for me

[Next page](https://forum.dynamobim.com/t/pile-coordinates/68638.md?page=2)
