# Splitting Error

**URL:** <https://forum.dynamobim.com/t/splitting-error/16167>\
**Category:** DesignScript\
**Tags:** bugs\
**Created:** [November 2, 2017, 4:32am UTC](https://forum.dynamobim.com/t/splitting-error/16167 "2017-11-02T04:32:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![minhchau.nguyen](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@minhchau.nguyen](https://forum.dynamobim.com/u/minhchau.nguyen)\
**Post date:** [November 2, 2017, 4:32am UTC](https://forum.dynamobim.com/t/splitting-error/16167/1 "2017-11-02T04:32:11Z")

</div>

There is something wrong with the splitting function of Dynamo. For example in this case, when i split the closed curve using the parameters i extracted from four points. The resulting curve is longer than it is supposed to be (list item number 2). However, when i round up the parameters to 10, the curve is ok. if i round up the parameters to 12, the curve has the problem again. I attach the dynamo file here and the link to download revit

Download link: [https://drive.google.com/open?id=0B45kxUBszzEBa3ItSDFFWWRvNHM](https://drive.google.com/open?id=0B45kxUBszzEBa3ItSDFFWWRvNHM)

Thanks! ![Splitting1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/e/beffa6301af6c4b32b2c5ebb6df15fb98ea04cbf.PNG) ![Splitting2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/2/c25708c6cf26e7a048e5afbaefbfbc8d3062fe8c.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 2, 2017, 6:12am UTC](https://forum.dynamobim.com/t/splitting-error/16167/2 "2017-11-02T06:12:21Z")

</div>

Typically the parameters of a curve are measured on a scale of 0 to 1. Try using the parameter at point node inputting the main curve and your end points. Then try splitting the curve by parameter, see what you get 🙂

---

<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, 3:45am UTC](https://forum.dynamobim.com/t/splitting-error/16167/3 "2017-11-07T03:45:48Z")

</div>

Even splitting by parameter within your reference file is throwing up a:

_“Warning: Curve.SplitByPoints operation failed. Curve join produced more than one WIRE in PolyCurve”_

The best you might hope for with this geometry is to convert it to a Nurbs.Curve with a degree that Revit can handle for each segment.

[(D1.3) Splitting Error NurbsCurve Solution.dyn](https://forum.dynamobim.com/uploads/short-url/gtrz59pXjkBJhWNXrqhH89d4YYa.dyn) (42.2 KB)

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/f/4f648d534e93521fb7901b19e533ab5647684743.png)

![NurbsCurve Splitting](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/7/87f5aa0455ec08c76956dd9ef11fa3e5d01baa36.gif)
