# Nurbscurve to curve

**URL:** <https://forum.dynamobim.com/t/nurbscurve-to-curve/16284>\
**Category:** Uncategorized\
**Created:** [November 7, 2017, 1:24pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284 "2017-11-07T13:24:05Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [November 7, 2017, 1:24pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/1 "2017-11-07T13:24:05Z")

</div>

Heho, i try to align familyinstances along a nurbscurve…but my solution needs a normal curve to work.  
Is there a work around?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/1/4130261d7669effb779e81113ddbe238fa1c568f.png)  
Solution from [http://dynamobim.org/forums/topic/setting-rotation-along-a-path/](http://dynamobim.org/forums/topic/setting-rotation-along-a-path/)  
[nurbscurve\_to\_curve.dyn](https://forum.dynamobim.com/uploads/short-url/3kZqvs12oOt2EdW5BEAAzO3fE26.dyn) (13.0 KB)  
[01\_Alignment.xls](https://forum.dynamobim.com/uploads/short-url/bkN0MyvWb3SIdaG2OKH4PSWhkZ7.xls) (67.5 KB)  
I use the data and the node “01\_SplineFromExcel” from the bridge package.

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [November 7, 2017, 3:19pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/2 "2017-11-07T15:19:17Z")

</div>

You don’t need that node at all. It extracts a curve from a revit curve element.

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [November 7, 2017, 3:29pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/3 "2017-11-07T15:29:22Z")

</div>

well…it doesn’t work

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a5fdc3d809278703112ef2ceb194a438b0902b0.png)  
and the errors had something to do with the spline, because with a normal curve it works

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [November 7, 2017, 5:24pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/4 "2017-11-07T17:24:43Z")

</div>

Can you post a screen grab of their exact error dialogues?

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [November 8, 2017, 7:09am UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/5 "2017-11-08T07:09:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [November 8, 2017, 7:51pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/6 "2017-11-08T19:51:46Z")

</div>

Hmmm your code seems to work on a NurbsCurve when replicated.  
Perhaps try rebuilding the curve after the 01 Node?

What geometry working range is Dynamo set to? (This was the only error I had and it was on the Curve.PointAtSegementLength node. (Large=OK)

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

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [November 10, 2017, 9:13am UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/7 "2017-11-10T09:13:14Z")

</div>

The change of the working range in Dynamo doesn’t solve the problem…mh  
Any other idea’s?

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [November 10, 2017, 9:20am UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/8 "2017-11-10T09:20:58Z")

</div>

Try connecting the “Spline” output to the “cr” input of the CBN. Points don’t have a length per se 😉

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [November 10, 2017, 1:45pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/9 "2017-11-10T13:45:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/2/326e25923101a72f51880af455415f21a1555fa8.png)  
there is a connection between spline and the codblock

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [November 11, 2017, 1:10pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/10 "2017-11-11T13:10:17Z")

</div>

Indeed. My bad, it seems I misread the wires.

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [November 11, 2017, 5:37pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/11 "2017-11-11T17:37:01Z")

</div>

Did you try deconstructing the Nurbs.Curve and rebuilding it before feeding it to your code block?

---

<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:** [November 11, 2017, 7:02pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/12 "2017-11-11T19:02:34Z")

</div>

Hi @Fiesta

I have rebuild your graph and modified a bit. Your good to go now. Here is the script [nurbscurve\_to\_curve (For Fiesta).dyn](https://forum.dynamobim.com/uploads/short-url/wbirRy1bvzVL824ijagtqe7UtBY.dyn) (58.1 KB)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/2/12f84fee64d15bb1d745949ead292f7cc2ee6a67.png)

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [November 13, 2017, 3:13pm UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/13 "2017-11-13T15:13:41Z")

</div>

Thx u Kulkul, this works.

---

<div class="post-metadata">

**Author:** ![Thomas.lcp](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@Thomas.lcp](https://forum.dynamobim.com/u/Thomas.lcp)\
**Post date:** [June 18, 2019, 6:56am UTC](https://forum.dynamobim.com/t/nurbscurve-to-curve/16284/14 "2019-06-18T06:56:51Z")

</div>

Hi everyone !

I try your solution but it doesn’t work with in my case.

I have a roof with particular aspect :’) I need to get a spline of the intersection of this roof and the surface.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/1/11f057c86ff27e56ed07c2914a13f89caa367bb6.png)

As you can see, i have many nurbscurve, i try to join with your method but dynamo always say it’s not possible to do that.

One year after, here i am 🙂
