# Best method for retrieving sheet number from schedule?

**URL:** https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809
**Category:** Revit
**Tags:** revit
**Created:** [May 10, 2018, 3:27pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809 "2018-05-10T15:27:33Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![MuirEng](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@MuirEng](https://forum.dynamobim.com/u/MuirEng)
#### Post date: [May 10, 2018, 3:27pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/1 "2018-05-10T15:27:33Z")

</div>

Hi, hope this is a quickie,  
I’d like to collect the sheet number a schedule view is living on.  
Each view has a property “sheet number” but Revit does not seem to be assigning a value to this.  
I tried the GetSheetElementFromView node but this doesn’t seem to produce useful results. Am I missing something easy?  
thanks!

---

<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: [May 10, 2018, 3:45pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/2 "2018-05-10T15:45:19Z")

</div>

Element.OwnerView from Clockwork.

---

<div class="post-metadata">

### Author: ![MuirEng](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@MuirEng](https://forum.dynamobim.com/u/MuirEng)
#### Post date: [May 10, 2018, 4:21pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/3 "2018-05-10T16:21:13Z")

</div>

Thank you, but I do not think this works in my case. This seems to give the view from an element. I have the view, looking for sheet. Something like view.ownersheet?

---

<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: [May 10, 2018, 4:26pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/4 "2018-05-10T16:26:24Z")

</div>

Sheets are Views. Element.OwnerView will return the sheet a schedule is placed on.

---

<div class="post-metadata">

### Author: ![MuirEng](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@MuirEng](https://forum.dynamobim.com/u/MuirEng)
#### Post date: [May 10, 2018, 4:39pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/5 "2018-05-10T16:39:14Z")

</div>

Thanks Nick, but it doesn’t work for me.  
Here is a screen shot. In this case, using my two note schedules as input none of the methods works to extract the sheet number.  
.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/0/30bdd89c911f612e3654fd7ce38d5e7c8e92e0c2.JPG)

---

<div class="post-metadata">

### Author: ![MuirEng](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@MuirEng](https://forum.dynamobim.com/u/MuirEng)
#### Post date: [May 10, 2018, 4:39pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/6 "2018-05-10T16:39:47Z")

</div>

If I change the input to another type of view (plan view) then the properties sheet number comes through (top watch), and Get Sheet Ellements works also, but this node you are referring me to still doesn’t work.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/1/9181f5d339f4f76c190d2d22687c24fa3e8917c1.JPG)

I don’t understand why I can make at least two methods work with plan view but not with a schedule.

---

<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: [May 10, 2018, 5:07pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/7 "2018-05-10T17:07:56Z")

</div>

Element.OwnerView would work with a ScheduleSheetInstance, not a Schedule View, since the schedule view itself is not technically the element on the sheet.

You would have to

1. Collect All Elements of Type \> Schedule Sheet Instances
2. Get ScheduleId property with Python (or Element.TryGetPropertyValue from Wombat Dynamo)
3. Get Schedule Element by ID from the ScheduleId property to filter schedule sheet instances by the schedule view you want
4. Get Owner View from filtered schedule sheet instances

---

<div class="post-metadata">

### Author: ![MuirEng](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@MuirEng](https://forum.dynamobim.com/u/MuirEng)
#### Post date: [May 10, 2018, 6:32pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/8 "2018-05-10T18:32:05Z")

</div>

Thanks. I think am I following.  
is there any documentation about ScheduleSheetInstance? It took me a couple of tries to get the exact name of the scheduleid parameter.

appreciate the hand hold.

---

<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: [May 10, 2018, 7:43pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/9 "2018-05-10T19:43:26Z")

</div>

@MuirEng The properties can be found in the API docs [http://www.revitapidocs.com/2018.1/68db8e46-90de-6b54-3dae-598957d94201.htm](http://www.revitapidocs.com/2018.1/68db8e46-90de-6b54-3dae-598957d94201.htm)

Another option to see what attributes an element has is to use the node Object.Members from Clockwork

---

<div class="post-metadata">

### Author: ![MuirEng](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@MuirEng](https://forum.dynamobim.com/u/MuirEng)
#### Post date: [May 12, 2018, 10:08pm UTC](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/10 "2018-05-12T22:08:35Z")

</div>

excellent, thanks very much!
