# Retrieving corresponding Schedule with schedulesheetinstance

**URL:** https://forum.dynamobim.com/t/retrieving-corresponding-schedule-with-schedulesheetinstance/23784
**Category:** Revit
**Tags:** schedule, dynamo
**Created:** [July 16, 2018, 3:37pm UTC](https://forum.dynamobim.com/t/retrieving-corresponding-schedule-with-schedulesheetinstance/23784 "2018-07-16T15:37:11Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mickael.g](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mickael.g](https://forum.dynamobim.com/u/mickael.g)
#### Post date: [July 16, 2018, 3:37pm UTC](https://forum.dynamobim.com/t/retrieving-corresponding-schedule-with-schedulesheetinstance/23784/1 "2018-07-16T15:37:11Z")

</div>

Hello everyone,

Well, here is my question. I’m trying to sort my schedules placed on a sheet, but the only thing I can get is the list of the ScheduleSheetInstance ; so, how can you get the Id, or the name of the corresponding Schedules?

---

<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: [July 16, 2018, 3:53pm UTC](https://forum.dynamobim.com/t/retrieving-corresponding-schedule-with-schedulesheetinstance/23784/2 "2018-07-16T15:53:51Z")

</div>

Hi @mickael.g see these posts here:

> [@Best method for retrieving sheet number from schedule?](https://forum.dynamobim.com/t/best-method-for-retrieving-sheet-number-from-schedule/21809/7):
>
> 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 Collect All Elements of Type \> Schedule Sheet Instances Get ScheduleId property with Python (or Element.TryGetPropertyValue from Wombat Dynamo) Get Schedule Element by ID from the ScheduleId property to filter schedule sheet instances by the schedule view you want Get Owner View from filtered schedule sheet instances

> [@Creating a schedule that shows what sheet Panelboard schedules are on using Dynamo](https://forum.dynamobim.com/t/creating-a-schedule-that-shows-what-sheet-panelboard-schedules-are-on-using-dynamo/21970/19):
>
> Hmm, Element.OwnerView worked for me, but perhaps it is a 2.0 thing (I’m in 1.3.2)? Were you connecting it to the PanelScheduleSheetInstances? Regardless, since you are already using the Element.TryGetPropertyValues, you can also get the OwnerViewId like so:

(the second link shows PanelScheduleSheetInstances but it will work the same with ScheduleSheetInstances)

---

<div class="post-metadata">

### Author: ![mickael.g](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mickael.g](https://forum.dynamobim.com/u/mickael.g)
#### Post date: [July 16, 2018, 4:12pm UTC](https://forum.dynamobim.com/t/retrieving-corresponding-schedule-with-schedulesheetinstance/23784/3 "2018-07-16T16:12:01Z")

</div>

Hi Amy,  
Thanks for you answer (that was fast !). Well, your method only gives me the sheet taht contains my scheduleSheetInstance. All I need is the name of the Schedule, not the name of the sheet. I don’t know if it is possible…

---

<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: [July 16, 2018, 4:15pm UTC](https://forum.dynamobim.com/t/retrieving-corresponding-schedule-with-schedulesheetinstance/23784/4 "2018-07-16T16:15:55Z")

</div>

> [@mickael.g](#):
>
> All I need is the name of the Schedule, not the name of the sheet.

Yes both posts go a step further to connect which schedule is in on which sheet but both involve getting the Schedule View element from the ScheduleSheetInstance

Here is a mark up of the image taken from the second post that you could follow:

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

You would then use GetParameterValueByName on the Schedule View elements to get the Schedule Views’ names. Element.TryGetPropertyValue and Element.ById are from the package Wombat.

---

<div class="post-metadata">

### Author: ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)
#### Post date: [July 16, 2018, 4:51pm UTC](https://forum.dynamobim.com/t/retrieving-corresponding-schedule-with-schedulesheetinstance/23784/5 "2018-07-16T16:51:50Z")

</div>

Hi,

You can use the node Get ScheduleView from the package Genius Loci.

 ![Scheduleviews%20from%20scheduleinstance](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/a/8a426a2b10c90d2ed8f8d99bbc459e331dad1479.png)

---

<div class="post-metadata">

### Author: ![mickael.g](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mickael.g](https://forum.dynamobim.com/u/mickael.g)
#### Post date: [July 17, 2018, 6:22am UTC](https://forum.dynamobim.com/t/retrieving-corresponding-schedule-with-schedulesheetinstance/23784/6 "2018-07-17T06:22:05Z")

</div>

I alredy tried it, but I have no properties in the output of the node. Here is an image of my program:

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

do you have any idea about the error? Did I miss something?

---

<div class="post-metadata">

### Author: ![mickael.g](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mickael.g](https://forum.dynamobim.com/u/mickael.g)
#### Post date: [July 17, 2018, 6:26am UTC](https://forum.dynamobim.com/t/retrieving-corresponding-schedule-with-schedulesheetinstance/23784/7 "2018-07-17T06:26:06Z")

</div>

Thanks a lot Alban ! This works perfectly!

---

<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: [July 17, 2018, 3:08pm UTC](https://forum.dynamobim.com/t/retrieving-corresponding-schedule-with-schedulesheetinstance/23784/8 "2018-07-17T15:08:18Z")

</div>

You had input “Schedule **ID** ” - the property name is “Schedule **Id** ” (just a capitalization error)
