# Sheet sort number - shared parameter

**URL:** <https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [June 27, 2018, 8:05pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155 "2018-06-27T20:05:50Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [June 27, 2018, 8:05pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/1 "2018-06-27T20:05:50Z")

</div>

Hi, I need to get the shared parameter for the sheet sort number,see image below.  
It is very labor costing to manually change the numbers of sheets every time we have  
submissions. The solutions online are only for the sheet numbers automation but not the  
sequence of the sheets.

![Sheet%20order%20sequence](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/6/96cf4af487be36468a0fa1d9ae59c42fc60f96ae.JPG)

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [June 28, 2018, 2:15am UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/2 "2018-06-28T02:15:16Z")

</div>

@kliton1 Can you show what you have done so far?

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [June 28, 2018, 5:07am UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/3 "2018-06-28T05:07:00Z")

</div>

Here’s wht i would do

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/9/d9c664f5fbd6b05809f91d3c2bfeabda4e875e31.png)

---

<div class="post-metadata">

**Author:** ![Mitesh\_Gajjar](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Mitesh\_Gajjar](https://forum.dynamobim.com/u/Mitesh_Gajjar)\
**Post date:** [June 29, 2018, 1:33pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/4 "2018-06-29T13:33:17Z")

</div>

you’re almost there. you basically need (2) parameters in order to get it work correctly. (1) total number of sheets and (2) sheet index number. see below snap of what I have done it. you just need to replace it after your “count” node.

just fyi, blue clouded gives me sheet index number and red cloud gives me total count of sheets.

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

---

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [June 29, 2018, 7:57pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/5 "2018-06-29T19:57:33Z")

</div>

I’ll give that a try, see if it works

Thanks

---

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [August 2, 2018, 5:29pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/6 "2018-08-02T17:29:46Z")

</div>

![Renumber%20Sheet%20Sequence%20Test](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/7/27ef1f1e25f28ffb4758eedd8c853b159e5d33d6.png)

@Daniel_Hurtubise I am getting an error message

---

<div class="post-metadata">

**Author:** ![Mitesh\_Gajjar](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Mitesh\_Gajjar](https://forum.dynamobim.com/u/Mitesh_Gajjar)\
**Post date:** [August 3, 2018, 5:17am UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/7 "2018-08-03T05:17:48Z")

</div>

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

Oh man!!! You’ll have to change the parameter names. Replace “# of #1 and # of #2” parameters based off what you’ve in your project. Shown in the image are the parameter names that I am using in our Revit template.

Please let me know if you still face any issues!!!

Regards,  
Mitesh

---

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [August 3, 2018, 1:40pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/8 "2018-08-03T13:40:15Z")

</div>

that makes more sense, I’ll that a try.

Thanks

---

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [August 3, 2018, 10:01pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/9 "2018-08-03T22:01:07Z")

</div>

![Renumber%20Sheet%20Sequence%20Test02](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/4/c41a96ea4c6f4f616baaf66eed835fc72e7bcb4e.png)

I am still having issues with it

---

<div class="post-metadata">

**Author:** ![Mitesh\_Gajjar](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Mitesh\_Gajjar](https://forum.dynamobim.com/u/Mitesh_Gajjar)\
**Post date:** [August 8, 2018, 3:03pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/10 "2018-08-08T15:03:04Z")

</div>

Can you show me your Revit parameter screenshot?

---

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [August 8, 2018, 6:40pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/11 "2018-08-08T18:40:44Z")

</div>

![Renumber%20Sheet%20Sequence%20Test03](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/a/ea54e8f4d76f993a091721ff548e23e76127fa9c.png) ![Sheet%20%23%20of|690x465](upload://xC ![No%20of%20Sheets](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/7/c73298854601149645f753f87a81a7db789cf6f2.jpeg) ymKTMZVjkfW00t21NlgPbAQGe.jpeg)

@Mitesh_Gajjar See the screenshots of the parameters, thanks for your help!

---

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [August 8, 2018, 6:41pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/12 "2018-08-08T18:41:37Z")

</div>

![Sheet%20%23%20of](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/b/eba36fcaa0a99554a88a72f27dd3893f94f5d8ba.jpeg)

---

<div class="post-metadata">

**Author:** ![Mitesh\_Gajjar](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Mitesh\_Gajjar](https://forum.dynamobim.com/u/Mitesh_Gajjar)\
**Post date:** [August 9, 2018, 6:02am UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/13 "2018-08-09T06:02:11Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/5/457c21c1529c508b4ba8e633759827c5585004cb.png) [Sheet X of X.dyn](https://forum.dynamobim.com/uploads/short-url/kg6IePkoxQ4fFRqYn7yNj8YQukL) (11.6 KB)

Please see attached .dyn file for your reference. Also see the snap of what I have modified it so far. Basically we need to flatten the list of sheet and then we need to count total number of sheet. What your code does is counts sheets first and then flatten which is inappropriate. Have a look at the file and let me know of any questions.

Mitesh

---

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [August 9, 2018, 3:01pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/14 "2018-08-09T15:01:23Z")

</div>

@Mitesh_Gajjar

 ![Drawing%20Sheet%20Index](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/a/1a073bc4c5f5d0f85dfe95ac6da442add814029c.jpeg)

The script works now, expect that i need to add some additional parameters talk to the  
project organization that we have set up in order to be number correctly. I have attached a  
screenshot of the drawing Index for reference.

---

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [September 7, 2018, 7:24pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/15 "2018-09-07T19:24:26Z")

</div>

Is there anyway you could share your revit file so that i can see what i am doing wrong?

Thanks

---

<div class="post-metadata">

**Author:** ![Mitesh\_Gajjar](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Mitesh\_Gajjar](https://forum.dynamobim.com/u/Mitesh_Gajjar)\
**Post date:** [September 17, 2018, 10:12am UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/16 "2018-09-17T10:12:50Z")

</div>

@kliton1

I cannot share my Revit file due to company policy. However, You can follow something below.

 ![S1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/3/035d37aad770dae07f99fe2a87ced25b17f26230.jpeg) ![S2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/6/763d6c2c6bc08d73436cff56eebbb605e3c1ee19.jpeg)

You’ll have to add multiple group of nodes per your needs.

Let me know if that helps!!

Mitesh

---

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [September 19, 2018, 3:10pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/17 "2018-09-19T15:10:40Z")

</div>

@Mitesh_Gajjar I can’t find the node List.SortByParameterValue,  
is there any way you can share the dynamo script?

Thanks!

---

<div class="post-metadata">

**Author:** ![Mitesh\_Gajjar](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Mitesh\_Gajjar](https://forum.dynamobim.com/u/Mitesh_Gajjar)\
**Post date:** [September 19, 2018, 3:25pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/18 "2018-09-19T15:25:54Z")

</div>

> [@kliton1](#):
>
> is there any way you can share the dynamo script?

Here you go!! That node is from “SwingNodes” package.  
[Sheet # OF #.dyn](https://forum.dynamobim.com/uploads/short-url/fo0mDsKnZGhkSTBa03uLKCdczP9.dyn) (25.1 KB)

---

<div class="post-metadata">

**Author:** ![kliton1](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kliton1](https://forum.dynamobim.com/u/kliton1)\
**Post date:** [September 19, 2018, 8:57pm UTC](https://forum.dynamobim.com/t/sheet-sort-number-shared-parameter/23155/19 "2018-09-19T20:57:54Z")

</div>

@Mitesh_Gajjar

The script below i have modified so that all of the consultants sheet index groups are included, i seem to get all of the sheets but the script is not revising the sheet numbers. If i run the second script attached it revises the sheet numbers, when you get a chance can you take a look at both of them and let me know your opinion on what’s missing.

[Sheet # OF #.dyn](https://forum.dynamobim.com/uploads/short-url/9bRVVwEdkndBVuuilBm7kLhl06h.dyn) (74.2 KB)

[Sheet X of X.dyn](https://forum.dynamobim.com/uploads/short-url/if9chmI5yRW0au3NkGJFDAQLyhZ.dyn) (16.8 KB)

Thanks
