# List of repeating items by a varying amount?

**URL:** <https://forum.dynamobim.com/t/list-of-repeating-items-by-a-varying-amount/8637>\
**Category:** Revit\
**Created:** [January 5, 2017, 10:56am UTC](https://forum.dynamobim.com/t/list-of-repeating-items-by-a-varying-amount/8637 "2017-01-05T10:56:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ralle](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@Ralle](https://forum.dynamobim.com/u/Ralle)\
**Post date:** [January 5, 2017, 10:56am UTC](https://forum.dynamobim.com/t/list-of-repeating-items-by-a-varying-amount/8637/1 "2017-01-05T10:56:33Z")

</div>

Hi!

Beginner Dynamo-user here, currently working on a residential project in Revit, where we need to create sales material for apartments. What I’m trying to achieve is a script that creates floor plans, and dependent views based on how many area objects (those define our apartments) there are per level. So far I’ve managed to filter out and to count the relevant areas, which resulted in a list of numbers.

I’ve now hit a roadblock and I don’t know how to proceed. I’ve found the Clockwork Node that duplicates views as dependent.I want to use that one with a list of repeated items, in which they are repeated based on the list of numbers that I have.

This is how far I’ve gotten:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/e/9e8f4eea0e7136f69afd418668b2e7d9e6b20ac7.jpg)

My question is then, if it is possible to achieve this? I’ve not yet managed to completely wrap my head around how lists works, so there might be something that I’m missing.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [January 5, 2017, 11:30am UTC](https://forum.dynamobim.com/t/list-of-repeating-items-by-a-varying-amount/8637/2 "2017-01-05T11:30:54Z")

</div>

Hello, your goal is to create “_dependent views based on how many area objects (those define our apartments) there are per level_” but could you also send an illustration of this? What do you mean by “_based on_”?

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [January 5, 2017, 11:57am UTC](https://forum.dynamobim.com/t/list-of-repeating-items-by-a-varying-amount/8637/3 "2017-01-05T11:57:43Z")

</div>

is this what you’re looking for?  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/e/b/eb49f322869546252cbb842a518aec23f5a9d0a0.PNG)

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [January 5, 2017, 1:01pm UTC](https://forum.dynamobim.com/t/list-of-repeating-items-by-a-varying-amount/8637/4 "2017-01-05T13:01:31Z")

</div>

If you’re on 1.2 or later, you can achieve a similar result with 1.2+ and list@level:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/22069ba602c815cf485e082b9149cda6a8d7fad4.png)

---

<div class="post-metadata">

**Author:** ![gabrielchiew](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@gabrielchiew](https://forum.dynamobim.com/u/gabrielchiew)\
**Post date:** [March 7, 2020, 3:07am UTC](https://forum.dynamobim.com/t/list-of-repeating-items-by-a-varying-amount/8637/5 "2020-03-07T03:07:15Z")

</div>

Hi, I am looking for the List.RepeatItemsByLengths and List.SublistLengths too. May I know where can I get them?

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [March 7, 2020, 8:23am UTC](https://forum.dynamobim.com/t/list-of-repeating-items-by-a-varying-amount/8637/6 "2020-03-07T08:23:49Z")

</div>

They were deprecated. Have a look here for how to replace them with OOTB nodes:

> **[andydandy74/ClockworkForDynamo](https://github.com/andydandy74/ClockworkForDynamo/wiki/Deprecated-Nodes-&-Packages#clockwork-for-dynamo-1x)**
>
> A collection of 400+ custom nodes for the Dynamo visual programming environment - andydandy74/ClockworkForDynamo
