# Help developing a list repeted value by count

**URL:** <https://forum.dynamobim.com/t/help-developing-a-list-repeted-value-by-count/94193>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [October 1, 2023, 9:39pm UTC](https://forum.dynamobim.com/t/help-developing-a-list-repeted-value-by-count/94193 "2023-10-01T21:39:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jordanq](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@Jordanq](https://forum.dynamobim.com/u/Jordanq)\
**Post date:** [October 1, 2023, 9:39pm UTC](https://forum.dynamobim.com/t/help-developing-a-list-repeted-value-by-count/94193/1 "2023-10-01T21:39:08Z")

</div>

Hello any of you can help me to find which node can help to copy the same value from a list by an specific count on a sublist.

Example. If I have 2 elements called 001, 4 elements 003, and only 1 called 004. Ca I get a sublist like the one on the image.

thanks

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/5/f508571f8365a02e1a330f58abc39b74ba803adb.png)

---

<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 1, 2023, 9:44pm UTC](https://forum.dynamobim.com/t/help-developing-a-list-repeted-value-by-count/94193/2 "2023-10-01T21:44:16Z")

</div>

List.OfRepeatedItems will do the trick. Feed it the list of items you want to repeat, and a list of the number of times you want each item repeated.

---

<div class="post-metadata">

**Author:** ![Jordanq](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@Jordanq](https://forum.dynamobim.com/u/Jordanq)\
**Post date:** [October 1, 2023, 9:45pm UTC](https://forum.dynamobim.com/t/help-developing-a-list-repeted-value-by-count/94193/3 "2023-10-01T21:45:51Z")

</div>

thanks Jacob, yes it did it. I tried with it before, but I was using wrong the levels. I’m attaching a picture the solution.

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