# Raybounce to topography

**URL:** <https://forum.dynamobim.com/t/raybounce-to-topography/53498>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [July 29, 2020, 1:46am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498 "2020-07-29T01:46:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dylim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dylim/32/121211_2.png) [@dylim](https://forum.dynamobim.com/u/dylim)\
**Post date:** [July 29, 2020, 1:46am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/1 "2020-07-29T01:46:47Z")

</div>

Hi guys.

I am trying to get distance between two points.

To get one point, I used Raybounce node and my target surface was topography model.  
The problem was raybounce nodes(OOTB, custom package) could not recognise the topo model.  
Of course, I can transform the topo model to polysurface and use project function.  
However, It takes too much time compared to process using the raybounce node.

Is it limitation of raybounce node or my fault?

Thanks!

---

<div class="post-metadata">

**Author:** ![harilalmn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/harilalmn/32/116193_2.png) [@harilalmn](https://forum.dynamobim.com/u/harilalmn)\
**Post date:** [July 29, 2020, 6:45am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/2 "2020-07-29T06:45:01Z")

</div>

Are you trying to get the shortest distance to a topo surface from a given point above or below it?

---

<div class="post-metadata">

**Author:** ![dylim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dylim/32/121211_2.png) [@dylim](https://forum.dynamobim.com/u/dylim)\
**Post date:** [July 29, 2020, 6:49am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/3 "2020-07-29T06:49:33Z")

</div>

Hi @harilalmn.

Yes, If i can find the shortest distance from a given point. I could get a point on topo surface.

But ray bounce node is not working properly, and project node takes long processing time.

---

<div class="post-metadata">

**Author:** ![atharva.purohit466SX](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/atharva.purohit466sx/32/116951_2.png) [@atharva.purohit466SX](https://forum.dynamobim.com/u/atharva.purohit466SX)\
**Post date:** [January 24, 2023, 6:29am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/4 "2023-01-24T06:29:12Z")

</div>

Hi Dylim,  
Did you get any solution on this?

Regards,  
ap

---

<div class="post-metadata">

**Author:** ![RMohareb](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rmohareb/32/120534_2.png) [@RMohareb](https://forum.dynamobim.com/u/RMohareb)\
**Post date:** [January 24, 2023, 6:33am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/5 "2023-01-24T06:33:08Z")

</div>

Are you have this topology as a tin surface in civi 3d? Or only is it topology in revit?

---

<div class="post-metadata">

**Author:** ![atharva.purohit466SX](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/atharva.purohit466sx/32/116951_2.png) [@atharva.purohit466SX](https://forum.dynamobim.com/u/atharva.purohit466SX)\
**Post date:** [January 24, 2023, 6:35am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/6 "2023-01-24T06:35:12Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/f/ef00e218fdef148b60bf888b95b5e614d56d51e1.png)

Hi Ramiz,

It is dwg linked as topography.  
Please check the snip.

Regards,  
ap

---

<div class="post-metadata">

**Author:** ![chuongmep](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chuongmep/32/197537_2.png) [@chuongmep](https://forum.dynamobim.com/u/chuongmep)\
**Post date:** [January 24, 2023, 6:40am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/7 "2023-01-24T06:40:12Z")

</div>

if you have two point , it is easy to can get distance by use `DistanceTo` to do this :

> <https://github.com/chuongmep/RevitAPI_EveryDay/blob/b2a033b0928e1cba89f6b7d0b2fa35ebb503efca/src/RevitAPIEveryDay/Day08/DistanceAToB.cs#L33>

---

<div class="post-metadata">

**Author:** ![atharva.purohit466SX](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/atharva.purohit466sx/32/116951_2.png) [@atharva.purohit466SX](https://forum.dynamobim.com/u/atharva.purohit466SX)\
**Post date:** [January 24, 2023, 7:11am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/8 "2023-01-24T07:11:05Z")

</div>

Hi Ho Van,

Actually i’m trying to automatically make rock bolts for tunnel.  
So from tunnel points, it should reach the topo linked surface and stop.  
Hence I’m not sure if it will solve my purpose with two points.  
Rather should I import the topo file in my current project?

Regards,  
ap

---

<div class="post-metadata">

**Author:** ![chuongmep](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chuongmep/32/197537_2.png) [@chuongmep](https://forum.dynamobim.com/u/chuongmep)\
**Post date:** [January 24, 2023, 7:23am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/9 "2023-01-24T07:23:46Z")

</div>

I still confuse with your issue, In revit API, you can try with Ray intersect to find it

> <https://github.com/chuongmep/RevitAPI_EveryDay/blob/b2a033b0928e1cba89f6b7d0b2fa35ebb503efca/src/RevitAPIEveryDay/Utils/ElementUtils.cs#L58-L75>

---

<div class="post-metadata">

**Author:** ![RMohareb](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rmohareb/32/120534_2.png) [@RMohareb](https://forum.dynamobim.com/u/RMohareb)\
**Post date:** [January 24, 2023, 7:42am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/10 "2023-01-24T07:42:48Z")

</div>

If you can open the Cad file and convert it to tin surface you can use this point

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/b/6b1faa1295b8788a46ac20c9b347a924ba30c2e6.png)

import point is the point in the tunnel and the output is the point at the tin surface

---

<div class="post-metadata">

**Author:** ![atharva.purohit466SX](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/atharva.purohit466sx/32/116951_2.png) [@atharva.purohit466SX](https://forum.dynamobim.com/u/atharva.purohit466SX)\
**Post date:** [January 24, 2023, 9:44am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/11 "2023-01-24T09:44:13Z")

</div>

Okay, will try it out right away and update here.  
Thank you.  
ap

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 24, 2023, 3:16pm UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/12 "2023-01-24T15:16:01Z")

</div>

Hi @RMohareb FYI know out of context 😉 but your package have conflict witk Dynamep package or the other round dont know 😉 think is some names in the pointcloud nodes there gives trouble,sorry break in 😉

---

<div class="post-metadata">

**Author:** ![RMohareb](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rmohareb/32/120534_2.png) [@RMohareb](https://forum.dynamobim.com/u/RMohareb)\
**Post date:** [January 24, 2023, 3:47pm UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/13 "2023-01-24T15:47:50Z")

</div>

@sovitek thank you for your note  
my package was have a conflict with Civilconnection package and i solve this problem. please test the new ver. 4.0.0

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/7/97dbe07e662ac843b0ff138ee4c39381ce2030ae.png)  
regards:  
can you test the new ver. 4.0.0 to make sure i have no conflict 🙏 🙏 🙏 🙏 🙏

i will test it aloso with Dynamep

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 24, 2023, 3:53pm UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/14 "2023-01-24T15:53:44Z")

</div>

Yeps give it a take later, but last time i have the package installed many nodes from dynamep missed…and an other topic…so i will give my result in pm when i have tested…thanks

---

<div class="post-metadata">

**Author:** ![RMohareb](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rmohareb/32/120534_2.png) [@RMohareb](https://forum.dynamobim.com/u/RMohareb)\
**Post date:** [January 24, 2023, 3:55pm UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/15 "2023-01-24T15:55:23Z")

</div>

Thanks 🙏 🙏 🙏 🙏 🙏 🙏

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 25, 2023, 8:00am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/16 "2023-01-25T08:00:22Z")

</div>

Great @RMohareb …seems to work now with the upgrade…cheers

EDIT soryy to fast 😉 after restart some of dynamep nodes disappear

Without your package…

 ![test](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/2/92c922580ed497a97266a6302c26709605e7e5c6.png)

With your package

![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9adacf4b0268049202c53cbbadf6f763416bebee.png)

---

<div class="post-metadata">

**Author:** ![RMohareb](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rmohareb/32/120534_2.png) [@RMohareb](https://forum.dynamobim.com/u/RMohareb)\
**Post date:** [January 25, 2023, 10:33am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/17 "2023-01-25T10:33:53Z")

</div>

@sovitek  
thank you for your effort. 🙏 🙏 🙏 🙏 🙏  
Yes you are right, the conflict come from used the same Class name for pointCloud and List  
i change it in my pakege to Point\_Cloud and List\_

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/8/e83f6b581b2d3043151482d87fbb36703b078acc.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/3/63eb6477e4375f6ba25207ca87d5fd81cc6d6630.png)

I update the Pak. Ver 4.0.1

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 25, 2023, 10:40am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/18 "2023-01-25T10:40:53Z")

</div>

Thanks …so nice 😉

---

<div class="post-metadata">

**Author:** ![RMohareb](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rmohareb/32/120534_2.png) [@RMohareb](https://forum.dynamobim.com/u/RMohareb)\
**Post date:** [January 25, 2023, 10:41am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/19 "2023-01-25T10:41:37Z")

</div>

@sovitek  
Thank you 👌 🙏 👌 🙏 😊 😊 😊

---

<div class="post-metadata">

**Author:** ![atharva.purohit466SX](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/atharva.purohit466sx/32/116951_2.png) [@atharva.purohit466SX](https://forum.dynamobim.com/u/atharva.purohit466SX)\
**Post date:** [March 6, 2023, 7:04am UTC](https://forum.dynamobim.com/t/raybounce-to-topography/53498/20 "2023-03-06T07:04:06Z")

</div>

Hello all,  
Again opening this thread with my previous tries.

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

I’ve tried ray bounce with Civil3d tin surface import in revit (not linked)  
and Created topo in revit itself, but ray bounce doesn’t detect both.

Any reason to it?

Regards,  
Atharva Purohit

[Next page](https://forum.dynamobim.com/t/raybounce-to-topography/53498.md?page=2)
