# Sheet Counting function

**URL:** <https://forum.dynamobim.com/t/sheet-counting-function/32020>\
**Category:** Revit\
**Created:** [February 12, 2019, 3:28pm UTC](https://forum.dynamobim.com/t/sheet-counting-function/32020 "2019-02-12T15:28:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![J.Wehmer](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.wehmer/32/79455_2.png) [@J.Wehmer](https://forum.dynamobim.com/u/J.Wehmer)\
**Post date:** [February 12, 2019, 3:28pm UTC](https://forum.dynamobim.com/t/sheet-counting-function/32020/1 "2019-02-12T15:28:39Z")

</div>

I am trying to set sheets as “\_\_\_ of \_\_\_” on the titleblock. There is another posting on the forums, but I have tried the recommended fixes but have had no luck ☹

 ![Sheet%20of%20count](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/3/13e5b97a779abaf84cad0442dcd29664d2909c3f.png)

I have tried a bunch of different variations, but all yield the same error for “Sheet Set Counter” output.

---

<div class="post-metadata">

**Author:** ![Tomasz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tomasz/32/66785_2.png) [@Tomasz](https://forum.dynamobim.com/u/Tomasz)\
**Post date:** [February 12, 2019, 3:54pm UTC](https://forum.dynamobim.com/t/sheet-counting-function/32020/2 "2019-02-12T15:54:04Z")

</div>

Try:

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

---

<div class="post-metadata">

**Author:** ![J.Wehmer](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.wehmer/32/79455_2.png) [@J.Wehmer](https://forum.dynamobim.com/u/J.Wehmer)\
**Post date:** [February 14, 2019, 1:30pm UTC](https://forum.dynamobim.com/t/sheet-counting-function/32020/3 "2019-02-14T13:30:14Z")

</div>

Boom! Solved the issue, thanks @Tomasz

Now I just have to clean up some sheet sorting/ordering

---

<div class="post-metadata">

**Author:** ![J.Wehmer](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.wehmer/32/79455_2.png) [@J.Wehmer](https://forum.dynamobim.com/u/J.Wehmer)\
**Post date:** [February 14, 2019, 9:12pm UTC](https://forum.dynamobim.com/t/sheet-counting-function/32020/4 "2019-02-14T21:12:49Z")

</div>

Any thoughts on how I can sort my sheets by “Dicsipline Order”? Every time I call for the parameter, it is in the strange order [1,10,11,12,13,2,21,22,3,4,5,6,7…20]

I have tried every combination I can imagine, but I cannot sort them in the “proper” order. Is there a node or process I am not considering?

Attached is the file for reference  
Thanks

[Sheets 02 - Set Sheet Of Total Number.dyn](https://forum.dynamobim.com/uploads/short-url/aP5OBLu9KJpQ3TRoxZilVA42rSN.dyn) (36.5 KB)

---

<div class="post-metadata">

**Author:** ![Tomasz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tomasz/32/66785_2.png) [@Tomasz](https://forum.dynamobim.com/u/Tomasz)\
**Post date:** [February 18, 2019, 12:49pm UTC](https://forum.dynamobim.com/t/sheet-counting-function/32020/5 "2019-02-18T12:49:22Z")

</div>

Please open a new thread for your new question.
