# Retrieving all sheets in current revit model

**URL:** <https://forum.dynamobim.com/t/retrieving-all-sheets-in-current-revit-model/16493>\
**Category:** Uncategorized\
**Tags:** revit, clockwork, dynamo\
**Created:** [November 14, 2017, 10:42pm UTC](https://forum.dynamobim.com/t/retrieving-all-sheets-in-current-revit-model/16493 "2017-11-14T22:42:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andaroo](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@Andaroo](https://forum.dynamobim.com/u/Andaroo)\
**Post date:** [November 14, 2017, 10:42pm UTC](https://forum.dynamobim.com/t/retrieving-all-sheets-in-current-revit-model/16493/1 "2017-11-14T22:42:11Z")

</div>

I found this [link](https://forum.dynamobim.com/t/is-there-a-way-for-dynamo-to-list-all-the-sheets-in-a-project-and-get-the-count/18/7) , but it uses a deprecated package. Ultimately I would want to create a list that displays as

- E-101TW - FIRST FLOOR POWER PLAN
- E-121TW - FIRST FLOOR LIGHTING PLAN
- E-501TW - DETAILS

I think I will have the use the clockwork package, but not too sure. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [November 14, 2017, 11:39pm UTC](https://forum.dynamobim.com/t/retrieving-all-sheets-in-current-revit-model/16493/2 "2017-11-14T23:39:25Z")

</div>

Any reason you don’t want to use OOTB nodes? That link is very old so maybe they were using that method because Dynamo didn’t have the OOTB capability at the time…

 ![sheets](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/3/63554fb09e3e3e6673388138996721154820e0f8.png)

This method here is all with OOTB nodes, and the output strings can be joined to produce a list that displays the way you describe

---

<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:** [November 14, 2017, 11:57pm UTC](https://forum.dynamobim.com/t/retrieving-all-sheets-in-current-revit-model/16493/3 "2017-11-14T23:57:54Z")

</div>

@awilliams gave a great illustration to get the elements. Your link dates back to 2014 (has it been that long?). As @Andreas_Dieckmann mentioned those nodes were replaced by out of the box (OOTB) nodes and as a result you should use those. To get your desired output you can try the following.

1. Use a List.Transpose node to reorganize the data from the Element.GetParameterValueByName node.
2. Use a List.FirstItem node and a List.LastItem node to separate the list into separate lists.
3. Use a String.Join node where the first input is the sheet numbers, the second list is the sheet names, and the separator is a string value of " - ".

If you struggle with replicating @awilliams’ solution or working out the directions above I suggest you visit the Dynamo primer and do every exercise, the ones which are confusing twice. Don’t skip any even if they feel like you don’t need them - the content there is curated to let you know the concepts required to understand how to work through these sort of problems, and that understanding will save you time in the long run.

> **[About | The Dynamo Primer](https://primer.dynamobim.org/)**
>
> Download the Dynamo v1.3 Primer here

---

<div class="post-metadata">

**Author:** ![Andaroo](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@Andaroo](https://forum.dynamobim.com/u/Andaroo)\
**Post date:** [November 15, 2017, 9:50pm UTC](https://forum.dynamobim.com/t/retrieving-all-sheets-in-current-revit-model/16493/4 "2017-11-15T21:50:54Z")

</div>

@jacob.small I was able to produce the following. However, I am not getting the end result in the format I want. It seems to be treating an entire list as one string. Is this normal?

ex: E-121TW - FIRST FLOOR LIGHTING PLAN

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/d/cd1f1255b19facb37f3ea3d98c982a46d60a72ef.PNG)

---

<div class="post-metadata">

**Author:** ![Andaroo](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@Andaroo](https://forum.dynamobim.com/u/Andaroo)\
**Post date:** [November 15, 2017, 10:10pm UTC](https://forum.dynamobim.com/t/retrieving-all-sheets-in-current-revit-model/16493/5 "2017-11-15T22:10:13Z")

</div>

This is how I was able to get around not using string.join. Although I would be interested in seeing if one could get the same result using the string.join node.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/9/79f43728bd2634d8ee569bcd133fbae93434699e.PNG)

---

<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:** [November 15, 2017, 10:10pm UTC](https://forum.dynamobim.com/t/retrieving-all-sheets-in-current-revit-model/16493/6 "2017-11-15T22:10:25Z")

</div>

You want to use `String1 + " - " + String2;` in a code block if you’ve separated your lists.

String.Join does exactly what you’ve shown; it concatenates a list with a given separator. It just happens to let you join multiple lists at once. You would use String.Join if you kept the list structure that Amy showed - Sheet Number and Sheet Name in the same sublist.

---

<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:** [November 15, 2017, 10:59pm UTC](https://forum.dynamobim.com/t/retrieving-all-sheets-in-current-revit-model/16493/7 "2017-11-15T22:59:53Z")

</div>

Try setting lacing to longest and/or enabling levels on the string.join node.
