# Want to copy a line n times, but at different distances

**URL:** <https://forum.dynamobim.com/t/want-to-copy-a-line-n-times-but-at-different-distances/94643>\
**Category:** Uncategorized\
**Created:** [October 17, 2023, 1:36pm UTC](https://forum.dynamobim.com/t/want-to-copy-a-line-n-times-but-at-different-distances/94643 "2023-10-17T13:36:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziedsamoud1990](https://avatars.discourse-cdn.com/v4/letter/z/ac91a4/32.png) [@ziedsamoud1990](https://forum.dynamobim.com/u/ziedsamoud1990)\
**Post date:** [October 17, 2023, 1:36pm UTC](https://forum.dynamobim.com/t/want-to-copy-a-line-n-times-but-at-different-distances/94643/1 "2023-10-17T13:36:44Z")

</div>

I want to copy a line 5 times, but at different distances. I’ve been doing it with equal distances, but I need it with different distances.For example, copy 5 times at distances of 3, 10, 6, 2.

 ![6](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/e/ceffd568e4f79e9eb809f79eb27c3fcf58ca1621.png)  
 ![7](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/c/8c63dd143d409552c3b77b958a0cd20f2f6431e8.png)  
thx

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 17, 2023, 1:48pm UTC](https://forum.dynamobim.com/t/want-to-copy-a-line-n-times-but-at-different-distances/94643/2 "2023-10-17T13:48:54Z")

</div>

This is the exact same topic you posted before, just with different values. Please make sure you’re not making redundant posts when you could just extend a topic (with a valid follow-up question).

Please also make sure you’re making a valid effort to understand the solutions you’re being given. You have a graph that makes copies at given distances. Your first list just happens to be equal distances. This one would be whatever distances you need.

---

<div class="post-metadata">

**Author:** ![ziedsamoud1990](https://avatars.discourse-cdn.com/v4/letter/z/ac91a4/32.png) [@ziedsamoud1990](https://forum.dynamobim.com/u/ziedsamoud1990)\
**Post date:** [October 17, 2023, 1:58pm UTC](https://forum.dynamobim.com/t/want-to-copy-a-line-n-times-but-at-different-distances/94643/3 "2023-10-17T13:58:55Z")

</div>

The topics are different. The first topic is about how I can copy a line n times at a fixed distance ‘L’. The second one is about copying a line n times but with different values of ‘L’  
. I’m an amateur here.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 17, 2023, 2:17pm UTC](https://forum.dynamobim.com/t/want-to-copy-a-line-n-times-but-at-different-distances/94643/4 "2023-10-17T14:17:54Z")

</div>

But that’s where you have some responsibility in understanding the difference between the nuance of specifics and a fundamentally new problem. If anything, that’s why this should have been attached to your original question, but the request is still the same: “How do you copy a line multiple times at multiple distances?”

Whether the distances are equal or different has no effect on how you implement that solution. You provide a list of distances to move the line. How you get those distances and what they represent is irrelevant.

To move a line 5 times at 5 distances would require you to provide 5 values (one for each offset). We’ll call those values `a`, `b`, `c`, `d`, and `e`. Those values can be whatever you want. If they need to be equidistant then you need to create a sequence of equally spaced values (which you did in the first thread). If they need to be different values then you need a way to provide those values.

Scenario 1: `a = 0`, `b = 5`, `c = 10`, `d = 15`, `e = 20`  
Scenario 2: `a = 0`, `b = 3`, `c = 10`, `d = 6`, `e = 2` // this is assuming your example values are absolute  
Scenario 3: `a = 0`, `b = 3`, `c = 13`, `d = 19`, `e = 21` // this is assuming your example values are relative

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 17, 2023, 2:25pm UTC](https://forum.dynamobim.com/t/want-to-copy-a-line-n-times-but-at-different-distances/94643/5 "2023-10-17T14:25:05Z")

</div>

Prove a list of values into the L input of your code block.
