# Copy Sheet Number into another parameter

**URL:** <https://forum.dynamobim.com/t/copy-sheet-number-into-another-parameter/97858>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [February 6, 2024, 6:23pm UTC](https://forum.dynamobim.com/t/copy-sheet-number-into-another-parameter/97858 "2024-02-06T18:23:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LIFTED-TACOMA](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lifted-tacoma/32/84628_2.png) [@LIFTED-TACOMA](https://forum.dynamobim.com/u/LIFTED-TACOMA)\
**Post date:** [February 6, 2024, 6:23pm UTC](https://forum.dynamobim.com/t/copy-sheet-number-into-another-parameter/97858/1 "2024-02-06T18:23:39Z")

</div>

Hey all,

So I am trying to get back into learning Dynamo after taking a long (unwanted) break from using it. I have a lot of projects that we will house in one model, (I.E. – Tenant fit-out’s) and to be able to keep sheet naming and numbers consistent, we have been putting the project number in front of the sheet number. For example we would have E00-01 – E00-15, for the fit-out we would do something like 233.xxx – E00-01 – 233.xxx – E00-15.

We use a parameter called “Sheet Number Displayed” to remove the 233.xxx - and not show that on the sheets.

I got this script to work somewhat. When I run it the information is being put into the “Sheet Number Displayed” parameter field for every single sheet. In the code block where I have the “233.xxx” it will do those sheets that have that in front of the sheet number, but then will add “233.xxx - ” to all the other sheets. Is there a way to get it to only search of those ones and if they exist to only change those ones and not the others?

I hope that I am making some sense with how I am explaining.

![2024-02-06 11_07_23-Window](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/2/c2f01fdae2290a57c316ac0f558cb61bedb32019.png)

 ![2024-02-06 11_08_35-Window](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/4/749028604245bb9b8b3d503bccab5816c9565cf8.png)  
[SheetNumberDisplayed.dyn](https://forum.dynamobim.com/uploads/short-url/60pisAtgROGgg9NyYvD3woQOCXG.dyn) (12.9 KB)

---

<div class="post-metadata">

**Author:** ![bmsewell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bmsewell/32/17073_2.png) [@bmsewell](https://forum.dynamobim.com/u/bmsewell)\
**Post date:** [February 6, 2024, 6:41pm UTC](https://forum.dynamobim.com/t/copy-sheet-number-into-another-parameter/97858/2 "2024-02-06T18:41:50Z")

</div>

You can use **List.FilterByBoolMask** to filter out only the elements you want to update.

In this case, you can use the **String.StartsWith** block to filter out all sheets that start with **233.xxx**

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/7826fd92086b4efd2a14d9d689b38a013bddf5fc.png)  
[SheetNumberDisplayed.dyn](https://forum.dynamobim.com/uploads/short-url/bZA4k1ihLypDpY1g1bEH2urFLR9.dyn) (23.9 KB)

---

<div class="post-metadata">

**Author:** ![LIFTED-TACOMA](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lifted-tacoma/32/84628_2.png) [@LIFTED-TACOMA](https://forum.dynamobim.com/u/LIFTED-TACOMA)\
**Post date:** [February 6, 2024, 8:01pm UTC](https://forum.dynamobim.com/t/copy-sheet-number-into-another-parameter/97858/3 "2024-02-06T20:01:45Z")

</div>

BOOM! that worked like a charm! thank you very much.
