# Repeating Code Block

**URL:** <https://forum.dynamobim.com/t/repeating-code-block/67168>\
**Category:** Revit\
**Created:** [August 15, 2021, 12:33pm UTC](https://forum.dynamobim.com/t/repeating-code-block/67168 "2021-08-15T12:33:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gcf\_Design](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@Gcf\_Design](https://forum.dynamobim.com/u/Gcf_Design)\
**Post date:** [August 15, 2021, 12:33pm UTC](https://forum.dynamobim.com/t/repeating-code-block/67168/1 "2021-08-15T12:33:30Z")

</div>

How do l repeat a code block a number of times, with a varying value being held? I can vary the value, but it does not repeat the block?

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

---

<div class="post-metadata">

**Author:** ![Gcf\_Design](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@Gcf\_Design](https://forum.dynamobim.com/u/Gcf_Design)\
**Post date:** [August 15, 2021, 12:48pm UTC](https://forum.dynamobim.com/t/repeating-code-block/67168/2 "2021-08-15T12:48:58Z")

</div>

I wish to amend ‘B’ 100+ times, A & C remain the same, yet the block gets pushed into a node 100+ times. I am having no luck searching for a solution regarding this task. Any pointers welcomed.

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

---

<div class="post-metadata">

**Author:** ![Gcf\_Design](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@Gcf\_Design](https://forum.dynamobim.com/u/Gcf_Design)\
**Post date:** [August 15, 2021, 4:07pm UTC](https://forum.dynamobim.com/t/repeating-code-block/67168/3 "2021-08-15T16:07:14Z")

</div>

Resolved.

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [August 16, 2021, 12:23am UTC](https://forum.dynamobim.com/t/repeating-code-block/67168/4 "2021-08-16T00:23:23Z")

</div>

Not sure if this is how you solved it, but the syntax below is probably best…

`[A, 1..B..1, C]`
