# Range of curves not responding as expected

**URL:** <https://forum.dynamobim.com/t/range-of-curves-not-responding-as-expected/32176>\
**Category:** DesignScript\
**Created:** [February 15, 2019, 7:14am UTC](https://forum.dynamobim.com/t/range-of-curves-not-responding-as-expected/32176 "2019-02-15T07:14:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mitchell](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mitchell](https://forum.dynamobim.com/u/Mitchell)\
**Post date:** [February 15, 2019, 7:14am UTC](https://forum.dynamobim.com/t/range-of-curves-not-responding-as-expected/32176/1 "2019-02-15T07:14:43Z")

</div>

Hi all,

I really hope someone can assist me with this situation which is really confusing me. I am using Design Script to create a Sinusoidal curve in Dynamo. This is fine and it works great. I want to create multiple curves along the Y axis in Dynamo, using the Range method. But every time i define a ‘Y’ variable and plug in the range node, it does the following:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/4384cd361ac719be0b76e87a1fa09381c3092a66.png)

But when I plug in a standard slider into the ‘Y’ variable, the curve responds as expected, but obviously does not create multiple curves, it simply translates it along the Y axis… Any idea how to solve this?

---

<div class="post-metadata">

**Author:** ![lucamanzoni](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lucamanzoni/32/56718_2.png) [@lucamanzoni](https://forum.dynamobim.com/u/lucamanzoni)\
**Post date:** [February 15, 2019, 8:26am UTC](https://forum.dynamobim.com/t/range-of-curves-not-responding-as-expected/32176/2 "2019-02-15T08:26:30Z")

</div>

I guess it’s a lacing problem, with a normal node you just need Longest Lacing but since you are working with DesignScript, instead of _y_ you should write _y\<1L\>_:

 ![SinTranslation](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a295c78d9b8c302ac80b350fe0995dab12398489.jpeg)

You can find a great guide about DS here:

> [@DesignScript: A Robust Dive into the Language Underlying Dynamo](https://forum.dynamobim.com/t/designscript-a-robust-dive-into-the-language-underlying-dynamo/27438):
>
> If you are curious about using DesignScript inside of Dynamo, but the resources available are not quite up to your liking, then come check out [https://github.com/Amoursol/dynamoDesignScript](https://github.com/Amoursol/dynamoDesignScript). I have uploaded my BILT EUR 2018 presentation on DesignScript that covers a whole raft of basics, some powerful features, exemplars of looping and some use-cases from forum heroes right here (Shoutout to @Vikram_Subbaiah and @Andreas_Dieckmann). The GitHub repo contains the following PDFs: [Presentation](https://github.com/Amoursol/dynamoDesignScript/blob/master/DesignScript_ARobustDiveIntoTheLanguageUnderlyingDynamo_BILTEUR_Ljubljana2018.pdf)[De…](https://github.com/Amoursol/dynamoDesignScript/blob/master/DesignScript_ARobustDiveIntoTheLanguageUnderlyingDynamo_Tips_and_Tricks_BILTEUR_Ljubljana2018.pdf)

---

<div class="post-metadata">

**Author:** ![Mitchell](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mitchell](https://forum.dynamobim.com/u/Mitchell)\
**Post date:** [February 15, 2019, 8:32am UTC](https://forum.dynamobim.com/t/range-of-curves-not-responding-as-expected/32176/3 "2019-02-15T08:32:46Z")

</div>

Hi Lucamanzoni,

thank you very much for your response, this worked perfectly!!

I am still quite new to Dynamo and I will go read the information that you sent through to me (Thanks by the way), for now, could you explain what that step does? I’m guessing that is just the DS syntax for defining the lacing?

---

<div class="post-metadata">

**Author:** ![lucamanzoni](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lucamanzoni/32/56718_2.png) [@lucamanzoni](https://forum.dynamobim.com/u/lucamanzoni)\
**Post date:** [February 15, 2019, 8:51am UTC](https://forum.dynamobim.com/t/range-of-curves-not-responding-as-expected/32176/4 "2019-02-15T08:51:18Z")

</div>

Yes exactly, but actually DesignScript uses Replications to achieve the same results of Lacing.  
You will find all the necessary information in the guide, in particular at the pages 37-41 😉

---

<div class="post-metadata">

**Author:** ![Mitchell](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mitchell](https://forum.dynamobim.com/u/Mitchell)\
**Post date:** [February 15, 2019, 8:53am UTC](https://forum.dynamobim.com/t/range-of-curves-not-responding-as-expected/32176/5 "2019-02-15T08:53:14Z")

</div>

Thank you very much again! I really appreciate your time 🙂
